com.atlassian.confluence.renderer.radeox.macros.junit.report
Class TestCaseReport

java.lang.Object
  extended bycom.atlassian.confluence.renderer.radeox.macros.junit.report.AbstractTestReport
      extended bycom.atlassian.confluence.renderer.radeox.macros.junit.report.TestCaseReport
All Implemented Interfaces:
TestReport
Direct Known Subclasses:
JUnitTestCaseReport

public class TestCaseReport
extends AbstractTestReport

Encapsulates a Test Case that can have child test cases. The Testcase report is used to record test passes failure and exceptions so that reports can be generated.

Author:
Armond Avanes (armond555@yahoo.com), Ross Mason

Nested Class Summary
 class TestCaseReport.Timer
           
 
Field Summary
 
Fields inherited from class com.atlassian.confluence.renderer.radeox.macros.junit.report.AbstractTestReport
debugMessage, failure, passMessage
 
Constructor Summary
TestCaseReport()
           
 
Method Summary
 void addTest(TestReport test)
           
 TestReport getCurrentTest()
           
 int getErrorsCount()
           
 TestCaseFailureReport getFailure()
           
 int getFailuresCount()
           
 String getName()
           
 List getTestCases()
           
 int getTestsCount()
           
 long getTime()
           
 int getTopErrorsCount()
           
 int getTopFailuresCount()
           
 int getTotalTestsCount()
           
 boolean isTimerStopped()
           
 void setFailure(TestCaseFailureReport failure)
           
 void setName(String name)
           
 void stopTimer()
           
 
Methods inherited from class com.atlassian.confluence.renderer.radeox.macros.junit.report.AbstractTestReport
getDebugMessage, getErrorRate, getFailureRate, getPassMessage, getSuccessRate, getTimeAsString, setDebugMessage, setPassMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TestCaseReport

public TestCaseReport()
Method Detail

getName

public String getName()

setName

public void setName(String name)

getTime

public long getTime()

getFailure

public TestCaseFailureReport getFailure()
Specified by:
getFailure in interface TestReport
Overrides:
getFailure in class AbstractTestReport

setFailure

public void setFailure(TestCaseFailureReport failure)
Specified by:
setFailure in interface TestReport
Overrides:
setFailure in class AbstractTestReport

addTest

public void addTest(TestReport test)

getTestCases

public List getTestCases()

getTopErrorsCount

public int getTopErrorsCount()

getErrorsCount

public int getErrorsCount()

getTopFailuresCount

public int getTopFailuresCount()

getFailuresCount

public int getFailuresCount()

getTotalTestsCount

public int getTotalTestsCount()

getTestsCount

public int getTestsCount()

getCurrentTest

public TestReport getCurrentTest()

stopTimer

public void stopTimer()

isTimerStopped

public boolean isTimerStopped()


Confluence is developed by Atlassian.