public abstract class Tester
extends Object
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
Tester(String name)
Add this test to the global list of tests
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
private static LinkedList allTests
private String name
private boolean testedAlready
public static final void testAll()
public final void test()
protected abstract void testImpl()
throws Exception
Exception