|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.sqlunit.reporters.CanooWebTestReporter
public class CanooWebTestReporter
SQLUnit Reporter that works with the Canoo Web Test framework. Generates XML that can be converted to output for the Canoo Web Test console.
Field Summary | |
---|---|
static java.lang.String |
FORMAT_NAME
the format name to be used in the ant task |
Constructor Summary | |
---|---|
CanooWebTestReporter(java.lang.String outputFile)
Constructs a new CanooWebTestReporter |
Method Summary | |
---|---|
void |
addFailure(java.lang.Throwable th,
boolean isError)
Called when an exception occured during processing. |
void |
echo(java.lang.String message)
Called from within the test from the SQLUnit Echo tag to print out values from within the test. |
void |
finishedTest(long time,
boolean success)
Called when a test is completed |
java.lang.String |
getName()
Returns the format name. |
boolean |
hasContainer()
Returns true since this reporter runs in the context of a Canoo Web Test. |
void |
newTestFile(java.lang.String name,
java.lang.String location)
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 |
Field Detail |
---|
public static final java.lang.String FORMAT_NAME
Constructor Detail |
---|
public CanooWebTestReporter(java.lang.String outputFile) throws java.lang.Exception
outputFile
- the file
java.lang.Exception
- if a problem occursMethod Detail |
---|
public final java.lang.String getName()
getName
in interface IReporter
public final boolean hasContainer()
hasContainer
in interface IReporter
public final void newTestFile(java.lang.String name, java.lang.String location)
newTestFile
in interface IReporter
name
- the name of the test being runlocation
- the filename of the test filepublic final void settingUpConnection(java.lang.String connectionId)
settingUpConnection
in interface IReporter
connectionId
- the id of the connection being attempted,
or null for the default connectionpublic final void setConfig(java.util.Map configMap)
setConfig
in interface IReporter
configMap
- 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 IReporter
name
- the name of the test being runtestIndex
- the index of the test being rundesc
- a description of the test being runpublic final void finishedTest(long time, boolean success)
finishedTest
in interface IReporter
time
- the time in milliseconds the test took to runsuccess
- true if the test succeeded, false otherwisepublic final void skippedTest(java.lang.String name, int testIndex, java.lang.String desc)
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 final void addFailure(java.lang.Throwable th, boolean isError)
addFailure
in interface IReporter
th
- the exception that occuredisError
- true if the exception is an error, else false.public final void tempFile(int testId, java.lang.String result, java.lang.String file)
tempFile
in interface IReporter
testId
- the index of the testresult
- the result of the testfile
- the temporary filepublic final void tearDown()
tearDown
in interface IReporter
public final void testFileComplete(boolean success)
testFileComplete
in interface IReporter
success
- true if everything completed with no errors,
false otherwisepublic final void echo(java.lang.String message)
echo
in interface IReporter
message
- the message to echo.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |