public class SpringIntegrationClassRule
extends java.lang.Object
implements org.junit.rules.TestRule
TestRule to be used with @ClassRule to run the @BeforeClass and @AfterClass modifiers that are part of SpringJUnit4ClassRunner.| Constructor and Description |
|---|
SpringIntegrationClassRule() |
| Modifier and Type | Method and Description |
|---|---|
org.junit.runners.model.Statement |
apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description)
Wraps
RunBeforeTestClassCallbacks and RunAfterTestClassCallbacks around the provided statement. |
static org.springframework.test.context.TestContextManager |
createTestContextManager(java.lang.Class<?> testClass)
Creates a test context manager.
|
org.springframework.test.context.TestContextManager |
getTestContextManager(java.lang.Class<?> testClass)
Gets the test context manager, creating it if it doesn't exist.
|
public org.junit.runners.model.Statement apply(org.junit.runners.model.Statement base,
org.junit.runner.Description description)
RunBeforeTestClassCallbacks and RunAfterTestClassCallbacks around the provided statement.apply in interface org.junit.rules.TestRulebase - The base statementdescription - Information about the test class being run.public static org.springframework.test.context.TestContextManager createTestContextManager(java.lang.Class<?> testClass)
testClass - The test class to create the test context manager for.public org.springframework.test.context.TestContextManager getTestContextManager(java.lang.Class<?> testClass)
testClass - The test class to create the test context manager for, if it doesn't exist.