|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase com.gargoylesoftware.base.testing.BaseTestCase
An extension of junit.framework.TestCase that adds those methods that we really wish were part of JUnit.
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(boolean condition)
Assert that the specified condition is false. |
static void |
assertFalse(String description,
boolean condition)
Assert that the specified condition is false. |
void |
assertInstanceOf(Object object,
Class clazz)
Assert that the specified object is an instance of this class |
void |
assertInstanceOf(String label,
Object object,
Class clazz)
Assert that the specified object is an instance of this class |
static void |
assertSame(Object a,
Object b)
Assert that the two objects are the same. |
static void |
assertSame(String description,
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. |
Methods inherited from class junit.framework.TestCase |
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString |
Methods inherited from class junit.framework.Assert |
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, fail, fail |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public BaseTestCase(String name)
name
- The name of the testMethod Detail |
public void notImplemented()
public void assertCollectionsEqual(Collection a, Collection b)
a
- The first collectionb
- The second collectionpublic static void assertSame(String description, Object a, 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(Object a, Object b)
a
- The first object to compare.b
- The second object to compare.public static void assertFalse(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(String label, Object object, Class clazz)
label
- A description of the testobject
- The object to testclazz
- The classpublic void assertInstanceOf(Object object, Class clazz)
object
- The object to testclazz
- The class
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |