unitee.server
Class DefaultTestReport

java.lang.Object
  |
  +--unitee.server.DefaultTestReport
Direct Known Subclasses:
HTMLTestReport

public class DefaultTestReport
extends java.lang.Object
implements TestReport


Constructor Summary
DefaultTestReport(java.io.PrintStream output)
           
 
Method Summary
 TestCaseHolder getCurrentTest()
           
 java.io.PrintStream getOutput()
           
protected  long getTime()
           
 void printSummary()
           
protected  void printSummary(TestCaseHolder[] failed, TestCaseHolder[] successful)
           
protected  void printTestFailed(java.lang.Throwable t)
           
protected  void printTestFinished()
           
protected  void printTestStarted()
           
 void setCurrentTest(TestCaseHolder test)
           
 void testFailed(java.lang.Throwable t)
           
 void testFinished()
           
 void testStarted()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTestReport

public DefaultTestReport(java.io.PrintStream output)
Parameters:
output -  
Throws:
-  
Method Detail

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:
-