public class GroovyTestCase extends TestCase
A JUnit 3 TestCase base class in Groovy. In case JUnit 4 is used, see GroovyAssert.
| Modifiers | Name | Description |
|---|---|---|
static String |
TEST_SCRIPT_NAME_PREFIX |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public static void |
assertEquals(String message, Object expected, Object actual) |
|
public static void |
assertEquals(Object expected, Object actual) |
|
public static void |
assertEquals(String expected, String actual) |
|
public String |
getMethodName() |
|
public String |
getName()Overload the getName() method to make the test cases look more like AgileDox (thanks to Joe Walnes for this tip!) |
|
public static boolean |
notYetImplemented(Object caller)see GroovyAssert.notYetImplemented |
|
public boolean |
notYetImplemented()Convenience method for subclasses of GroovyTestCase, identical to GroovyTestCase.notYetImplemented(this);. |
| Methods inherited from class | Name |
|---|---|
class TestCase |
getName, run, run, toString, format, setName, fail, fail, assertSame, assertSame, assertTrue, assertTrue, assertNotNull, assertNotNull, countTestCases, runBare, assertNull, assertNull, failSame, failNotSame, assertNotSame, assertNotSame, assertFalse, assertFalse, failNotEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, wait, wait, wait, equals, hashCode, getClass, notify, notifyAll |
Overload the getName() method to make the test cases look more like AgileDox (thanks to Joe Walnes for this tip!)
Convenience method for subclasses of GroovyTestCase, identical to
GroovyTestCase.notYetImplemented(this);.
false when not itself already in the call stack