unitee.server
Class DefaultTestReport
java.lang.Object
|
+--unitee.server.DefaultTestReport
- Direct Known Subclasses:
- HTMLTestReport
- public class DefaultTestReport
- extends java.lang.Object
- implements TestReport
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
DefaultTestReport
public DefaultTestReport(java.io.PrintStream output)
- Parameters:
output
- - Throws:
- -
testFailed
public void testFailed(java.lang.Throwable t)
- Specified by:
- testFailed in interface TestReport
- Parameters:
t
- - Returns:
- void
- Throws:
- Prints - that the test was finished abnormally.
The report will print the cause of the failure (the exception)
, so that unitee's operator will know how to fix the
problem.
testStarted
public void testStarted()
- Specified by:
- testStarted in interface TestReport
- Returns:
- void
- Throws:
- Prints - that a test is started. Saves the start time , used in
the testFinished() method.
testFinished
public void testFinished()
- Specified by:
- testFinished in interface TestReport
- Returns:
- void
- Throws:
- Prints - that a test has finished normally. Logs the time
the test has been run.
getOutput
public java.io.PrintStream getOutput()
- Specified by:
- getOutput in interface TestReport
- Returns:
- PrintStream
- Throws:
- -
printTestFailed
protected void printTestFailed(java.lang.Throwable t)
- Parameters:
t
- - Returns:
- void
- Throws:
- -
printTestFinished
protected void printTestFinished()
- Returns:
- void
- Throws:
- -
getTime
protected long getTime()
printTestStarted
protected void printTestStarted()
- Returns:
- void
- Throws:
- -
printSummary
protected void printSummary(TestCaseHolder[] failed,
TestCaseHolder[] successful)
- Parameters:
failed
- successful
- - Returns:
- void
- Throws:
- -
setCurrentTest
public void setCurrentTest(TestCaseHolder test)
- Specified by:
- setCurrentTest in interface TestReport
- Parameters:
test
- - Returns:
- void
- Throws:
- -
getCurrentTest
public TestCaseHolder getCurrentTest()
- Specified by:
- getCurrentTest in interface TestReport
- Returns:
- TestCaseHolder
- Throws:
- -
printSummary
public void printSummary()
- Specified by:
- printSummary in interface TestReport
- Returns:
- void
- Throws:
- -