|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.TestResult
net.sourceforge.sqlunit.SQLUnitResult
public class SQLUnitResult
SQLUnitResult is a simple container which contains the cumulative results of a SQLUnit test run.
Field Summary |
---|
Fields inherited from class junit.framework.TestResult |
---|
fErrors, fFailures, fListeners, fRunTests |
Constructor Summary | |
---|---|
SQLUnitResult()
|
Method Summary | |
---|---|
void |
addErrorCount()
Adds to the number of accumulated test errors. |
void |
addFailureCount()
Adds to the number of accumulated test failures. |
void |
addRunCount()
Adds to the number of accumulated tests performed. |
int |
errorCount()
Returns the number of tests errored so far. |
int |
failureCount()
Returns the number of tests failed so far. |
java.lang.Exception |
getLastException()
Returns the last exception encountered in the test. |
java.lang.String |
getTestFile()
Returns the test file name for the error report. |
int |
runCount()
Returns the number of tests run so far. |
void |
setLastException(java.lang.Exception e)
Sets the last exception encountered in the test. |
void |
setTestFile(java.lang.String testFile)
Sets the test file for the report. |
void |
subtractRunCount()
Subtracts the number of accumulated tests performed. |
java.lang.String |
toString()
Returns a String representation of this object. |
boolean |
wasSuccessful()
Returns true if the test was successful, false otherwise. |
Methods inherited from class junit.framework.TestResult |
---|
addError, addFailure, addListener, endTest, errors, failures, removeListener, run, runProtected, runTests, shouldStop, startTest, stop, testErrors, testFailures |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SQLUnitResult()
Method Detail |
---|
public final void addFailureCount()
public final void addErrorCount()
public final void addRunCount()
public final void subtractRunCount()
public final int runCount()
runCount
in class junit.framework.TestResult
public final int failureCount()
failureCount
in class junit.framework.TestResult
public final int errorCount()
errorCount
in class junit.framework.TestResult
public final java.lang.Exception getLastException()
public final void setLastException(java.lang.Exception e)
e
- an Exception object.public final java.lang.String getTestFile()
public final void setTestFile(java.lang.String testFile)
testFile
- the test file to report.public final boolean wasSuccessful()
wasSuccessful
in class junit.framework.TestResult
public final java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |