AbstractJUnit4SpringContextTests
)@Deprecated public abstract class ConditionalTestCase extends junit.framework.TestCase
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.isDisabledInThisEnvironment(java.lang.String)
Modifier and Type | Field and Description |
---|---|
protected Log |
logger
Deprecated.
Logger available to subclasses
|
Constructor and Description |
---|
ConditionalTestCase()
Deprecated.
Default constructor for ConditionalTestCase.
|
ConditionalTestCase(String name)
Deprecated.
Constructor for ConditionalTestCase with a JUnit name.
|
Modifier and Type | Method and Description |
---|---|
static int |
getDisabledTestCount()
Deprecated.
Return the number of tests disabled in this environment.
|
protected boolean |
isDisabledInThisEnvironment(String testMethodName)
Deprecated.
Should this test run?
|
protected int |
recordDisabled()
Deprecated.
Record a disabled test.
|
void |
runBare()
Deprecated.
|
countTestCases, createResult, getName, run, run, runTest, setName, setUp, tearDown, toString
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
protected final Log logger
public ConditionalTestCase()
public ConditionalTestCase(String name)
public static int getDisabledTestCount()
public void runBare() throws Throwable
runBare
in class junit.framework.TestCase
Throwable
protected boolean isDisabledInThisEnvironment(String testMethodName)
testMethodName
- name of the test methodprotected int recordDisabled()