org.exolab.jmscts.core
Class TestCoverage
java.lang.Object
|
+--org.exolab.jmscts.core.TestCoverage
- public class TestCoverage
- extends java.lang.Object
This class maintains the state of the test suite's coverage of requirements
- Version:
- $Revision: 1.5 $ $Date: 2004/01/31 13:44:24 $
- Author:
- Tim Anderson
- See Also:
Coverage
,
Requirements
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TestCoverage
public TestCoverage(Requirements requirements)
- Construct an instance with the set of requirements
- Parameters:
requirements
- the requirements
begin
public void begin(JMSTestCase test)
- Log the start of a test.
NOTE:
begin(org.exolab.jmscts.core.JMSTestCase)
may not be invoked if the test setup fails. In
this instance, only failed(junit.framework.Test, java.lang.Throwable, java.lang.Throwable)
will be invoked
- Parameters:
test
- the test case
end
public void end(JMSTestCase test)
- Log the end of a test
- Parameters:
test
- the test that has completed
failed
public void failed(junit.framework.Test test,
java.lang.Throwable cause,
java.lang.Throwable rootCause)
- Log a test case failure
- Parameters:
test
- the test casecause
- the reason for the failurerootCause
- the root cause of the failure. May be null
setUnsupported
public void setUnsupported(java.lang.String requirementId)
- Set a requirement as being unsupported
- Parameters:
requirementId
- the requirement identifier
getCoverage
public RequirementCoverage getCoverage()
- Returns the coverage of requirements by the test suite
- Returns:
- the coverage of requirements by the test suite
Copyright © 2001-2004 JMS CTS Team. All Rights Reserved.