|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.util.jester.TestHarness
public class TestHarness
A test harness. A test harness is created by each test suite and has test cases passed to it. It is where such things as the level of output from the test, logging, and so on are set up. (Currently, the harness is very simple. It will be extended in the future.)
Field Summary | |
---|---|
private int |
_indentLevel
The indent level |
private java.lang.String |
_indentString
The indent string |
private java.io.PrintStream |
_outputStream
The output stream |
Constructor Summary | |
---|---|
TestHarness()
|
Method Summary | |
---|---|
(package private) void |
doneTestSuite()
Clean up after running a test suite. |
(package private) void |
print(java.lang.String s)
Print to the output stream with no indent |
(package private) void |
println(java.lang.String s)
Print to the output stream with the current indent |
(package private) void |
printnoln(java.lang.String s)
Print to the output stream with the current indent |
(package private) void |
readyTestSuite(TestSuite suite)
Get ready to run a test suite. |
void |
runTestCase(TestCase testCase)
Run a single test and log the results |
void |
setOutputStream(java.io.PrintStream s)
Set the output stream |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.io.PrintStream _outputStream
private int _indentLevel
private java.lang.String _indentString
Constructor Detail |
---|
public TestHarness()
Method Detail |
---|
public void runTestCase(TestCase testCase)
void readyTestSuite(TestSuite suite)
void doneTestSuite()
public void setOutputStream(java.io.PrintStream s)
void println(java.lang.String s)
void printnoln(java.lang.String s)
void print(java.lang.String s)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |