public class ServletTestExecutionListener extends java.lang.Object implements TestExecutionListener
Modifier and Type | Field and Description |
---|---|
private static Log |
logger |
Constructor and Description |
---|
ServletTestExecutionListener() |
Modifier and Type | Method and Description |
---|---|
void |
afterTestClass(TestContext testContext)
The default implementation is empty.
|
void |
afterTestMethod(TestContext testContext)
TODO [SPR-9864] Document overridden afterTestMethod().
|
void |
beforeTestClass(TestContext testContext)
The default implementation is empty.
|
void |
beforeTestMethod(TestContext testContext)
TODO [SPR-9864] Document overridden beforeTestMethod().
|
void |
prepareTestInstance(TestContext testContext)
TODO [SPR-9864] Document overridden prepareTestInstance().
|
private void |
setUpRequestContextIfNecessary(TestContext testContext)
TODO [SPR-9864] Document setUpRequestContext().
|
public void beforeTestClass(TestContext testContext) throws java.lang.Exception
beforeTestClass
in interface TestExecutionListener
testContext
- the test context for the test; never null
java.lang.Exception
- allows any exception to propagateTestExecutionListener.beforeTestClass(TestContext)
public void prepareTestInstance(TestContext testContext) throws java.lang.Exception
prepareTestInstance
in interface TestExecutionListener
testContext
- the test context for the test; never null
java.lang.Exception
- allows any exception to propagateTestExecutionListener.prepareTestInstance(TestContext)
public void beforeTestMethod(TestContext testContext) throws java.lang.Exception
beforeTestMethod
in interface TestExecutionListener
testContext
- the test context in which the test method will be
executed; never null
java.lang.Exception
- allows any exception to propagateTestExecutionListener.beforeTestMethod(TestContext)
public void afterTestMethod(TestContext testContext) throws java.lang.Exception
afterTestMethod
in interface TestExecutionListener
testContext
- the test context in which the test method was
executed; never null
java.lang.Exception
- allows any exception to propagateTestExecutionListener.afterTestMethod(TestContext)
public void afterTestClass(TestContext testContext) throws java.lang.Exception
afterTestClass
in interface TestExecutionListener
testContext
- the test context for the test; never null
java.lang.Exception
- allows any exception to propagateTestExecutionListener.afterTestClass(TestContext)
private void setUpRequestContextIfNecessary(TestContext testContext)
testContext
- servletContext
-