com.gargoylesoftware.base.testing
public class BaseTestCase extends TestCase
Version: $Revision: 1.4 $
Constructor Summary | |
---|---|
BaseTestCase(String name)
Create an instance |
Method Summary | |
---|---|
void | assertCollectionsEqual(Collection a, Collection b)
Assert that the two collections are the same irrespective of order.
|
static void | assertFalse(String description, boolean condition)
Assert that the specified condition is false. |
static void | assertFalse(boolean condition)
Assert that the specified condition is false. |
void | assertInstanceOf(String label, Object object, Class clazz)
Assert that the specified object is an instance of this class
|
void | assertInstanceOf(Object object, Class clazz)
Assert that the specified object is an instance of this class
|
static void | assertSame(String description, Object a, Object b)
Assert that the two objects are the same. |
static void | assertSame(Object a, Object b)
Assert that the two objects are the same. |
void | notImplemented()
Convenience method to signal that this test hasn't been finished yet. |
Parameters: name The name of the test
Parameters: a The first collection b The second collection
Parameters: description The failure message to be used if the condition is not false. condition The value to check.
Parameters: condition The value to check.
Parameters: label A description of the test object The object to test clazz The class
Parameters: object The object to test clazz The class
Parameters: description The failure message to use if the two objects are not the same. a The first object to compare. b The second object to compare.
Parameters: a The first object to compare. b The second object to compare.