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

java.lang.Object
  extended by com.atlassian.confluence.renderer.radeox.macros.junit.report.AbstractTestReport
      extended by 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
 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()
           
 java.lang.String getName()
           
 java.util.List getTestCases()
           
 int getTestsCount()
           
 long getTime()
           
 int getTopErrorsCount()
           
 int getTopFailuresCount()
           
 int getTotalTestsCount()
           
 boolean isTimerStopped()
           
 void setFailure(TestCaseFailureReport failure)
           
 void setName(java.lang.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 java.lang.String getName()

setName

public void setName(java.lang.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 java.util.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()


Copyright © 2003-2014 Atlassian. All Rights Reserved.