|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectTestCase
org.springframework.test.ConditionalTestCase
AbstractJUnit38SpringContextTests
)
@Deprecated public abstract class ConditionalTestCase
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.
isDisabledInThisEnvironment(java.lang.String)
Field Summary | |
---|---|
private static int |
disabledTestCount
Deprecated. |
protected Log |
logger
Deprecated. Logger available to subclasses |
Constructor Summary | |
---|---|
ConditionalTestCase()
Deprecated. Default constructor for ConditionalTestCase. |
|
ConditionalTestCase(java.lang.String name)
Deprecated. Constructor for ConditionalTestCase with a JUnit name. |
Method Summary | |
---|---|
static int |
getDisabledTestCount()
Deprecated. Return the number of tests disabled in this environment. |
protected boolean |
isDisabledInThisEnvironment(java.lang.String testMethodName)
Deprecated. Should this test run? |
protected int |
recordDisabled()
Deprecated. Record a disabled test. |
void |
runBare()
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static int disabledTestCount
protected final Log logger
Constructor Detail |
---|
public ConditionalTestCase()
public ConditionalTestCase(java.lang.String name)
Method Detail |
---|
public static int getDisabledTestCount()
public void runBare() throws java.lang.Throwable
java.lang.Throwable
protected boolean isDisabledInThisEnvironment(java.lang.String testMethodName)
testMethodName
- name of the test method
protected int recordDisabled()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |