|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.sqlunit.reporters.TextReporter
public class TextReporter
SQLUnit reporter that writes its text to standard output. This is the default reporter for SQLUnit.
| Constructor Summary | |
|---|---|
TextReporter(java.lang.String outputFile)
Constructs a new TextReporter. |
|
| Method Summary | |
|---|---|
void |
addFailure(java.lang.Throwable th,
boolean error)
Called when an exception occured during processing. |
void |
echo(java.lang.String message)
Emits a message to the reporter's outputstream. |
void |
finishedTest(long elapsed,
boolean success)
Called when a test is completed |
java.lang.String |
getName()
Returns the name of this reporter. |
boolean |
hasContainer()
Returns false since this reporter runs in SQLUnit's context. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextReporter(java.lang.String outputFile)
outputFile - the output file to write to, or null to write
to standard error| Method Detail |
|---|
public final java.lang.String getName()
getName in interface IReporterpublic final boolean hasContainer()
hasContainer in interface IReporter
public final void newTestFile(java.lang.String testName,
java.lang.String testFile)
newTestFile in interface IReportertestName - the name of the test being runtestFile - the filename of the test filepublic final void settingUpConnection(java.lang.String connectionId)
settingUpConnection in interface IReporterconnectionId - the id of the connection being attempted, or null
for the default connectionpublic final void setConfig(java.util.Map configMap)
setConfig in interface IReporterconfigMap - the configuration mappublic final void setUp()
setUp in interface IReporter
public final void runningTest(java.lang.String name,
int testIndex,
java.lang.String desc)
runningTest in interface IReportername - the name of the test being runtestIndex - the index of the test being rundesc - a description of the test being run
public final void finishedTest(long elapsed,
boolean success)
finishedTest in interface IReporterelapsed - the time in milliseconds the test took to runsuccess - true if the test succeeded, false otherwise
public final void skippedTest(java.lang.String name,
int testIndex,
java.lang.String desc)
skippedTest in interface IReportername - the name of the test being runtestIndex - the index of the test being rundesc - a description of the test being run
public final void addFailure(java.lang.Throwable th,
boolean error)
addFailure in interface IReporterth - the exception that occurederror - true if the exception is an error, false if it is a failurepublic final void tearDown()
tearDown in interface IReporter
public final void tempFile(int testId,
java.lang.String result,
java.lang.String file)
tempFile in interface IReportertestId - the index of the testresult - the result of the testfile - the temporary filepublic final void testFileComplete(boolean success)
testFileComplete in interface IReportersuccess - true if everything completed with no errors,
false otherwisepublic final void echo(java.lang.String message)
echo in interface IReportermessage - the message to print.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||