|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.test.context.support.AbstractTestExecutionListener
public abstract class AbstractTestExecutionListener
Abstract implementation of the TestExecutionListener
interface which
provides empty method stubs. Subclasses can extend this class and override
only those methods suitable for the task at hand.
Constructor Summary | |
---|---|
AbstractTestExecutionListener()
|
Method Summary | |
---|---|
void |
afterTestClass(TestContext testContext)
The default implementation is empty. |
void |
afterTestMethod(TestContext testContext)
The default implementation is empty. |
void |
beforeTestClass(TestContext testContext)
The default implementation is empty. |
void |
beforeTestMethod(TestContext testContext)
The default implementation is empty. |
void |
prepareTestInstance(TestContext testContext)
The default implementation is empty. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractTestExecutionListener()
Method Detail |
---|
public void beforeTestClass(TestContext testContext) throws Exception
beforeTestClass
in interface TestExecutionListener
testContext
- the test context for the test; never null
Exception
- allows any exception to propagatepublic void prepareTestInstance(TestContext testContext) throws Exception
prepareTestInstance
in interface TestExecutionListener
testContext
- the test context for the test; never null
Exception
- allows any exception to propagatepublic void beforeTestMethod(TestContext testContext) throws Exception
beforeTestMethod
in interface TestExecutionListener
testContext
- the test context in which the test method will be
executed; never null
Exception
- allows any exception to propagatepublic void afterTestMethod(TestContext testContext) throws Exception
afterTestMethod
in interface TestExecutionListener
testContext
- the test context in which the test method was
executed; never null
Exception
- allows any exception to propagatepublic void afterTestClass(TestContext testContext) throws Exception
afterTestClass
in interface TestExecutionListener
testContext
- the test context for the test; never null
Exception
- allows any exception to propagate
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |