|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object global.TestDriver
TestDriver class is a base class for various test driver objects.
Note that the code written so far is very machine dependent. It assumes the
users are on UNIX system. For example, in function runTests, a UNIX command
is called to clean up the working directories.
Field Summary | |
static boolean |
FAIL
|
static boolean |
OK
|
Constructor Summary | |
TestDriver(java.lang.String nameRoot)
TestDriver Constructor |
Method Summary | |
boolean |
checkException(ChainException e,
java.lang.Class expectedException)
Used to verify whether the exception thrown from the bottom layer is the one expected. |
void |
cleanupAfterTests()
cleanupAfterTests subclasses should override this method with any cleanup needed after running all tests. |
void |
initBeforeTests()
initBeforeTests Starts the buffer manager. |
boolean |
runTests()
This function does the preparation/cleaning work for the running tests. |
java.lang.String |
testName()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final boolean OK
public static final boolean FAIL
Constructor Detail |
public TestDriver(java.lang.String nameRoot)
nameRoot
- The name of the test being runMethod Detail |
public java.lang.String testName()
String
object which contains the name of the testpublic void initBeforeTests()
public void cleanupAfterTests()
public final boolean runTests()
public boolean checkException(ChainException e, java.lang.Class expectedException)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |