|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectTester
public abstract class Tester
Handles tedious details of making a little regression test for a given class.
Field Summary | |
---|---|
private static LinkedList |
allTests
List of all tests (or at least, tests for all classes that have been loaded. |
private String |
name
Name of this test |
private boolean |
testedAlready
True after test has been tried |
Constructor Summary | |
---|---|
Tester(String name)
Add this test to the global list of tests |
Method Summary | |
---|---|
void |
test()
Run this particular test. |
static void |
testAll()
Run all registered tests. |
protected abstract void |
testImpl()
Derived classes should override this method to perform the actual work of the test. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static LinkedList allTests
private String name
private boolean testedAlready
Constructor Detail |
---|
public Tester(String name)
Method Detail |
---|
public static final void testAll()
public final void test()
protected abstract void testImpl() throws Exception
Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |