public class BaseTestCase
extends junit.framework.TestCase
| Constructor and Description |
|---|
BaseTestCase(java.lang.String name)
Create an instance
|
| Modifier and Type | Method and Description |
|---|---|
void |
assertCollectionsEqual(java.util.Collection a,
java.util.Collection b)
Assert that the two collections are the same irrespective of order.
|
static void |
assertFalse(boolean condition)
Assert that the specified condition is false.
|
static void |
assertFalse(java.lang.String description,
boolean condition)
Assert that the specified condition is false.
|
void |
assertInstanceOf(java.lang.Object object,
java.lang.Class clazz)
Assert that the specified object is an instance of this class
|
void |
assertInstanceOf(java.lang.String label,
java.lang.Object object,
java.lang.Class clazz)
Assert that the specified object is an instance of this class
|
static void |
assertSame(java.lang.Object a,
java.lang.Object b)
Assert that the two objects are the same.
|
static void |
assertSame(java.lang.String description,
java.lang.Object a,
java.lang.Object b)
Assert that the two objects are the same.
|
void |
notImplemented()
Convenience method to signal that this test hasn't been finished yet.
|
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, setUp, tearDown, toStringpublic BaseTestCase(java.lang.String name)
name - The name of the testpublic void notImplemented()
public void assertCollectionsEqual(java.util.Collection a,
java.util.Collection b)
a - The first collectionb - The second collectionpublic static void assertSame(java.lang.String description,
java.lang.Object a,
java.lang.Object b)
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.public static void assertSame(java.lang.Object a,
java.lang.Object b)
a - The first object to compare.b - The second object to compare.public static void assertFalse(java.lang.String description,
boolean condition)
description - The failure message to be used if the condition is not false.condition - The value to check.public static void assertFalse(boolean condition)
condition - The value to check.public void assertInstanceOf(java.lang.String label,
java.lang.Object object,
java.lang.Class clazz)
label - A description of the testobject - The object to testclazz - The classpublic void assertInstanceOf(java.lang.Object object,
java.lang.Class clazz)
object - The object to testclazz - The class