Class TestCaseReport
- java.lang.Object
-
- com.atlassian.confluence.renderer.radeox.macros.junit.report.AbstractTestReport
-
- com.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
Nested Classes Modifier and Type Class Description static class
TestCaseReport.Timer
-
Field Summary
-
Fields inherited from class com.atlassian.confluence.renderer.radeox.macros.junit.report.AbstractTestReport
debugMessage, failure, passMessage
-
-
Constructor Summary
Constructors Constructor Description TestCaseReport()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
Method Detail
-
getName
public String getName()
-
setName
public void setName(String name)
-
getTime
public long getTime()
-
getFailure
public TestCaseFailureReport getFailure()
- Specified by:
getFailure
in interfaceTestReport
- Overrides:
getFailure
in classAbstractTestReport
-
setFailure
public void setFailure(TestCaseFailureReport failure)
- Specified by:
setFailure
in interfaceTestReport
- Overrides:
setFailure
in classAbstractTestReport
-
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()
-
-