|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IReporter
The reporter interface that all reporters must implement.
Method Summary | |
---|---|
void |
addFailure(java.lang.Throwable th,
boolean error)
Called when an exception occured during processing. |
void |
echo(java.lang.String message)
Makes the reporter emit a predefined value. |
void |
finishedTest(long elapsed,
boolean success)
Called when a test is completed |
java.lang.String |
getName()
Returns a hardcoded name identifying the reporter implementation. |
boolean |
hasContainer()
Returns true if the reporter has its own container. |
void |
newTestFile(java.lang.String testName,
java.lang.String testFile)
Called when a new sqlunit test file is run. |
void |
runningTest(java.lang.String name,
int testIndex,
java.lang.String desc)
Called before a test is run. |
void |
setConfig(java.util.Map configMap)
Called after the connection is made. |
void |
settingUpConnection(java.lang.String connectionId)
Called before a database connection is setup. |
void |
setUp()
Called before the set up section of the test. |
void |
skippedTest(java.lang.String name,
int testIndex,
java.lang.String desc)
Called when a test is skipped because of an earlier failure. |
void |
tearDown()
Called before the tear down section is run |
void |
tempFile(int testId,
java.lang.String result,
java.lang.String file)
Called when a test has failed and a temporary file is left containing data. |
void |
testFileComplete(boolean success)
Called when the test file has been completed. |
Method Detail |
---|
java.lang.String getName()
boolean hasContainer()
void newTestFile(java.lang.String testName, java.lang.String testFile)
testName
- the name of the test being runtestFile
- the filename of the test filevoid settingUpConnection(java.lang.String connectionId)
connectionId
- the id of the connection being attempted,
or null for the default connectionvoid setConfig(java.util.Map configMap)
configMap
- the configuration mapvoid setUp()
void runningTest(java.lang.String name, int testIndex, java.lang.String desc)
name
- the name of the test being runtestIndex
- the index of the test being rundesc
- a description of the test being runvoid finishedTest(long elapsed, boolean success)
elapsed
- the time in milliseconds the test took to runsuccess
- true if the test succeeded, false otherwisevoid skippedTest(java.lang.String name, int testIndex, java.lang.String desc)
name
- the name of the test being runtestIndex
- the index of the test being rundesc
- a description of the test being runvoid addFailure(java.lang.Throwable th, boolean error)
th
- the exception that occurederror
- true if the exception is an error, false if it is a failurevoid tearDown()
void tempFile(int testId, java.lang.String result, java.lang.String file)
testId
- the index of the testresult
- the result of the testfile
- the temporary filevoid testFileComplete(boolean success)
success
- true if everything completed with no errors,
false otherwisevoid echo(java.lang.String message)
message
- the message to emit.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |