java.lang.Object | |||
↳ | junit.framework.Assert | ||
↳ | junit.framework.TestCase | ||
↳ | org.springframework.test.ConditionalTestCase |
Known Direct Subclasses |
Known Indirect Subclasses |
This class is deprecated.
as of Spring 3.0, in favor of using the listener-based test context framework
(AbstractJUnit38SpringContextTests
)
Superclass for JUnit 3.8 based tests that allows conditional test execution
at the 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;
however, log output will show that the test was not executed.
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
logger | Logger available to subclasses |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Default constructor for ConditionalTestCase.
| |||||||||||
Constructor for ConditionalTestCase with a JUnit name.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Return the number of tests disabled in this environment.
| |||||||||||
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Should this test run?
| |||||||||||
Record a disabled test.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
junit.framework.TestCase
| |||||||||||
From class
junit.framework.Assert
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
junit.framework.Test
|
Logger available to subclasses
Default constructor for ConditionalTestCase.
Return the number of tests disabled in this environment.
Should this test run?
testMethodName | name of the test method |
---|
Record a disabled test.