|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.test.context.support.AbstractTestExecutionListener
org.springframework.test.context.support.DirtiesContextTestExecutionListener
public class DirtiesContextTestExecutionListener
TestExecutionListener which processes test methods configured
with the @DirtiesContext annotation.
DirtiesContext| Constructor Summary | |
|---|---|
DirtiesContextTestExecutionListener()
|
|
| Method Summary | |
|---|---|
void |
afterTestMethod(TestContext testContext)
If the current test method of the supplied test context has been annotated with
@DirtiesContext, the
application context of the test context will
be marked as dirty,
and the
DependencyInjectionTestExecutionListener.REINJECT_DEPENDENCIES_ATTRIBUTE
will be set to true in the test context. |
| Methods inherited from class org.springframework.test.context.support.AbstractTestExecutionListener |
|---|
beforeTestMethod, prepareTestInstance |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DirtiesContextTestExecutionListener()
| Method Detail |
|---|
public void afterTestMethod(TestContext testContext)
throws java.lang.Exception
test context has been annotated with
@DirtiesContext, the
application context of the test context will
be marked as dirty,
and the
DependencyInjectionTestExecutionListener.REINJECT_DEPENDENCIES_ATTRIBUTE
will be set to true in the test context.
afterTestMethod in interface TestExecutionListenerafterTestMethod in class AbstractTestExecutionListenertestContext - the test context in which the test method was
executed (never null)
java.lang.Exception - allows any exception to propagate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||