|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.tck.junit4.AbstractMuleTestCase
public abstract class AbstractMuleTestCase
AbstractMuleTestCase
is a base class for Mule test cases. This
implementation provides services to test code for creating mock and test
objects.
Field Summary | |
---|---|
static int |
DEFAULT_TEST_TIMEOUT_SECS
|
org.junit.rules.TestRule |
globalTimeout
|
protected Log |
logger
|
org.junit.rules.TestName |
name
|
static String |
TEST_TIMEOUT_SYSTEM_PROPERTY
|
Constructor Summary | |
---|---|
AbstractMuleTestCase()
|
Method Summary | |
---|---|
static void |
clearExcludedFlag()
|
void |
clearRequestContext()
|
protected org.junit.rules.TestRule |
createTestTimeoutRule()
Creates the timeout rule that will be used to run the test. |
protected String |
getTestHeader()
|
int |
getTestTimeoutSecs()
Defines the timeout in seconds that will be used to run the test. |
protected int |
getTimeoutSystemProperty()
Defines the number of seconds that a test has in order to run before throwing a timeout. |
void |
initializeMuleTest()
|
protected boolean |
isDisabledInThisEnvironment()
Subclasses can override this method to skip the execution of the entire test class. |
protected boolean |
isDisabledInThisEnvironment(String testMethodName)
Should this test run? |
protected boolean |
isExcluded()
Indicates whether this test has been explicitly disabled through the configuration file loaded by TestInfo. |
protected boolean |
isFailOnTimeout()
Indicates whether the test should fail when a timeout is reached. |
boolean |
isOffline(String method)
|
protected boolean |
isTestIncludedInExclusionFile(AbstractMuleTestCase test)
Reads the mule-exclusion file for the current test class and |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_TEST_TIMEOUT_SECS
public static final String TEST_TIMEOUT_SYSTEM_PROPERTY
protected final transient Log logger
public org.junit.rules.TestName name
public org.junit.rules.TestRule globalTimeout
Constructor Detail |
---|
public AbstractMuleTestCase()
Method Detail |
---|
protected org.junit.rules.TestRule createTestTimeoutRule()
protected boolean isTestIncludedInExclusionFile(AbstractMuleTestCase test)
test
- protected int getTimeoutSystemProperty()
DEFAULT_MULE_TEST_TIMEOUT_SECS
constant.
protected boolean isDisabledInThisEnvironment()
true
if the test class should not be run.protected boolean isExcluded()
protected boolean isDisabledInThisEnvironment(String testMethodName)
testMethodName
- name of the test method
public boolean isOffline(String method)
public int getTestTimeoutSecs()
public final void initializeMuleTest()
protected String getTestHeader()
protected boolean isFailOnTimeout()
public final void clearRequestContext()
public static final void clearExcludedFlag()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |