|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.sqlunit.reporters.EmptyReporter
public class EmptyReporter
An empty reporter implementation. Useful for test cases.
Constructor Summary | |
---|---|
EmptyReporter(java.lang.String filename)
|
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 config)
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EmptyReporter(java.lang.String filename)
Method Detail |
---|
public java.lang.String getName()
IReporter
getName
in interface IReporter
public boolean hasContainer()
IReporter
hasContainer
in interface IReporter
public void newTestFile(java.lang.String testName, java.lang.String testFile)
IReporter
newTestFile
in interface IReporter
testName
- the name of the test being runtestFile
- the filename of the test filepublic void settingUpConnection(java.lang.String connectionId)
IReporter
settingUpConnection
in interface IReporter
connectionId
- the id of the connection being attempted,
or null for the default connectionpublic void setConfig(java.util.Map config)
IReporter
setConfig
in interface IReporter
config
- the configuration mappublic void setUp()
IReporter
setUp
in interface IReporter
public void runningTest(java.lang.String name, int testIndex, java.lang.String desc)
IReporter
runningTest
in interface IReporter
name
- the name of the test being runtestIndex
- the index of the test being rundesc
- a description of the test being runpublic void finishedTest(long elapsed, boolean success)
IReporter
finishedTest
in interface IReporter
elapsed
- the time in milliseconds the test took to runsuccess
- true if the test succeeded, false otherwisepublic void skippedTest(java.lang.String name, int testIndex, java.lang.String desc)
IReporter
skippedTest
in interface IReporter
name
- the name of the test being runtestIndex
- the index of the test being rundesc
- a description of the test being runpublic void addFailure(java.lang.Throwable th, boolean error)
IReporter
addFailure
in interface IReporter
th
- the exception that occurederror
- true if the exception is an error, false if it is a failurepublic void tearDown()
IReporter
tearDown
in interface IReporter
public void tempFile(int testId, java.lang.String result, java.lang.String file)
IReporter
tempFile
in interface IReporter
testId
- the index of the testresult
- the result of the testfile
- the temporary filepublic void testFileComplete(boolean success)
IReporter
testFileComplete
in interface IReporter
success
- true if everything completed with no errors,
false otherwisepublic void echo(java.lang.String message)
IReporter
echo
in interface IReporter
message
- the message to emit.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |