JavaScript is disabled on your browser.
Package: groovy.test

[Java] Class GroovyTestCase

    • Field Detail

      • public static final String TEST_SCRIPT_NAME_PREFIX

    • Method Detail

      • protected void assertArrayEquals(Object[] expected, Object[] value)

        Asserts that the arrays are equivalent and contain the same values

        Parameters:
        expected
        value

      • protected void assertContains(char expected, char[] array)

        Asserts that the array of characters contains a given char

        Parameters:
        expected - expected character to be found
        array - the array

      • protected void assertContains(int expected, int[] array)

        Asserts that the array of ints contains a given int

        Parameters:
        expected - expected int
        array - the array

      • public static void assertEquals(Object expected, Object actual)

      • public static void assertEquals(String expected, String actual)

      • protected void assertInspect(Object value, String expected)

        Asserts that the value of inspect() on the given object matches the given text string

        Parameters:
        value - the object to be output to the console
        expected - the expected String representation

      • protected void assertLength(int length, char[] array)

        Asserts that the array of characters has a given length

        Parameters:
        length - expected length
        array - the array

      • protected void assertLength(int length, int[] array)

        Asserts that the array of ints has a given length

        Parameters:
        length - expected length
        array - the array

      • protected void assertLength(int length, Object[] array)

        Asserts that the array of objects has a given length

        Parameters:
        length - expected length
        array - the array

      • protected void assertToString(Object value, String expected)

        Asserts that the value of toString() on the given object matches the given text string

        Parameters:
        value - the object to be output to the console
        expected - the expected String representation

      • protected String fixEOLs(String value)

        Returns a copy of a string in which all EOLs are \n.

      • public String getMethodName()

      • @Override
        public String getName()

        Overload the getName() method to make the test cases look more like AgileDox (thanks to Joe Walnes for this tip!)

      • protected String getTestClassName()

      • public boolean notYetImplemented()

        Convenience method for subclasses of GroovyTestCase, identical to

         GroovyTestCase.notYetImplemented(this); 
        .
        Returns:
        false when not itself already in the call stack
        See Also:
        notYetImplemented(java.lang.Object)

Copyright © 2003-2025 The Apache Software Foundation. All rights reserved.

AltStyle によって変換されたページ (->オリジナル) /