| |
|
| org.springframework.test.ConditionalTestCase
All known Subclasses: org.springframework.test.AbstractSpringContextTests,
ConditionalTestCase | abstract public class ConditionalTestCase extends TestCase (Code) | | Superclass for tests that allows conditional test execution
at individual test method level.
The isDisabledInThisEnvironment method is invoked before the
execution of each test method. Subclasses can override that method to return
whether or not the given test should be executed. Note that the tests will
still appear to have executed and passed; log output will show that the test
was not executed.
author: Rod Johnson since: 2.0 See Also: ConditionalTestCase.isDisabledInThisEnvironment |
Field Summary | |
final protected Log | logger |
logger | final protected Log logger(Code) | | Logger available to subclasses
|
ConditionalTestCase | public ConditionalTestCase()(Code) | | Default constructor for ConditionalTestCase.
|
ConditionalTestCase | public ConditionalTestCase(String name)(Code) | | Constructor for ConditionalTestCase with a JUnit name.
|
getDisabledTestCount | public static int getDisabledTestCount()(Code) | | Return the number of tests disabled in this environment.
|
isDisabledInThisEnvironment | protected boolean isDisabledInThisEnvironment(String testMethodName)(Code) | | Should this test run?
Parameters: testMethodName - name of the test method whether the test should execute in the current envionment |
recordDisabled | protected int recordDisabled()(Code) | | Record a disabled test.
the current disabled test count |
|
|
|