public interface TestExecutionListener
Modifier and Type | Method and Description |
---|---|
default void |
afterCleanupTest(TestContext testContext)
Executed after the setup method of a test method.
|
default void |
afterSetupTest(TestContext testContext)
Executed after the setup method of a test method.
|
default void |
afterTestClass(TestContext testContext)
Executed after all of the tests of a class have bean executed.
|
default void |
afterTestExecution(TestContext testContext)
Executed after a single test iteration has been executed .
|
default void |
afterTestMethod(TestContext testContext)
Executed after a test method has been executed (a test method may contain multiple
iterations).
|
default void |
beforeCleanupTest(TestContext testContext)
Executed before the setup method of a test method.
|
default void |
beforeSetupTest(TestContext testContext)
Executed before the setup method of a test method.
|
default void |
beforeTestClass(TestContext testContext)
Executed before all of the tests of a class are executed.
|
default void |
beforeTestExecution(TestContext testContext)
Executed before a single test iteration is executed.
|
default void |
beforeTestMethod(TestContext testContext)
Executed before a test method is executed (a test method may contain multiple iterations).
|
default void beforeTestClass(TestContext testContext) throws java.lang.Exception
testContext
- the test contextjava.lang.Exception
- allows any exception to propagatedefault void beforeSetupTest(TestContext testContext) throws java.lang.Exception
testContext
- the test contextjava.lang.Exception
- allows any exception to propagatedefault void afterSetupTest(TestContext testContext) throws java.lang.Exception
testContext
- the test contextjava.lang.Exception
- allows any exception to propagatedefault void beforeCleanupTest(TestContext testContext) throws java.lang.Exception
testContext
- the test contextjava.lang.Exception
- allows any exception to propagatedefault void afterCleanupTest(TestContext testContext) throws java.lang.Exception
testContext
- the test contextjava.lang.Exception
- allows any exception to propagatedefault void beforeTestMethod(TestContext testContext) throws java.lang.Exception
testContext
- the test contextjava.lang.Exception
- allows any exception to propagatedefault void beforeTestExecution(TestContext testContext) throws java.lang.Exception
testContext
- the test contextjava.lang.Exception
- allows any exception to propagatedefault void afterTestExecution(TestContext testContext) throws java.lang.Exception
testContext
- the test contextjava.lang.Exception
- allows any exception to propagatedefault void afterTestMethod(TestContext testContext) throws java.lang.Exception
testContext
- the test contextjava.lang.Exception
- allows any exception to propagatedefault void afterTestClass(TestContext testContext) throws java.lang.Exception
testContext
- the test contextjava.lang.Exception
- allows any exception to propagate