| org.hansel.CoverageDecorator
All known Subclasses: org.hansel.AssertionCoverageDecorator,
CoverageDecorator | public class CoverageDecorator extends TestSuite (Code) | | This class decorated tests with coverage testing.
Test classes that are added to this decorator are reloaded with an
instrumenting classloader, that adds coverage checks to the code.
After all tests are run, and if non of them has failed, the coverage results
are added to the result of the test.
author: Niklas Mehner |
Constructor Summary | |
public | CoverageDecorator(Class[] classesCovered) Creates a new (empty) CoverageDecorator. | public | CoverageDecorator(Class[] classesCovered, ProbeFilter probeFilter) Creates a new (empty) CoverageDecorator. | public | CoverageDecorator(Class testClass, Class[] classesCovered) Creates a new CoverageDecorator containing the test instantiated
from the given class
Parameters: testClass - Class the test is instantiated from. | public | CoverageDecorator(Class testClass, Class[] classesCovered, ProbeFilter probeFilter) Creates a new CoverageDecorator containging the test instantiated
from the given class
Parameters: testClass - Class the test is instantiated from. |
CoverageDecorator | public CoverageDecorator(Class[] classesCovered)(Code) | | Creates a new (empty) CoverageDecorator. This does not
print out any coverage statistics
Parameters: classesCovered - Classes that have to be covered. |
CoverageDecorator | public CoverageDecorator(Class[] classesCovered, ProbeFilter probeFilter)(Code) | | Creates a new (empty) CoverageDecorator. This does not
print out any coverage statistics
Parameters: classesCovered - Classes that have to be covered. |
CoverageDecorator | public CoverageDecorator(Class testClass, Class[] classesCovered)(Code) | | Creates a new CoverageDecorator containing the test instantiated
from the given class
Parameters: testClass - Class the test is instantiated from. The restrictionsfor the class are the same as for junit.framework.addTestSuite() Parameters: classesCovered - Classes that have to be covered. |
CoverageDecorator | public CoverageDecorator(Class testClass, Class[] classesCovered, ProbeFilter probeFilter)(Code) | | Creates a new CoverageDecorator containging the test instantiated
from the given class
Parameters: testClass - Class the test is instantiated from. The restrictionsfor the class are the same as for junit.framework.addTestSuite() Parameters: classesCovered - Classes that have to be covered. |
getClassesCovered | public Class[] getClassesCovered()(Code) | | |
init | protected boolean init(TestResult result)(Code) | | |
run | public void run(TestResult result)(Code) | | |
setDisplayStatistics | public void setDisplayStatistics(boolean display)(Code) | | |
shutdown | protected void shutdown(TestResult result)(Code) | | |
superRun | protected void superRun(TestResult result)(Code) | | |
|
|