Package io.micronaut.test.context
Interface TestExecutionListener
- All Known Implementing Classes:
AbstractMicronautExtension
,MicronautJunit5Extension
,MicronautSpockExtension
public interface TestExecutionListener
Test execution listener.
- Since:
- 1.2
- Author:
- bidorffOL
-
Method Summary
Modifier and TypeMethodDescriptiondefault 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).
-
Method Details
-
beforeTestClass
Executed before all of the tests of a class are executed.- Parameters:
testContext
- the test context- Throws:
Exception
- allows any exception to propagate
-
beforeSetupTest
Executed before the setup method of a test method.- Parameters:
testContext
- the test context- Throws:
Exception
- allows any exception to propagate
-
afterSetupTest
Executed after the setup method of a test method.- Parameters:
testContext
- the test context- Throws:
Exception
- allows any exception to propagate
-
beforeCleanupTest
Executed before the setup method of a test method.- Parameters:
testContext
- the test context- Throws:
Exception
- allows any exception to propagate
-
afterCleanupTest
Executed after the setup method of a test method.- Parameters:
testContext
- the test context- Throws:
Exception
- allows any exception to propagate
-
beforeTestMethod
Executed before a test method is executed (a test method may contain multiple iterations).- Parameters:
testContext
- the test context- Throws:
Exception
- allows any exception to propagate
-
beforeTestExecution
Executed before a single test iteration is executed.- Parameters:
testContext
- the test context- Throws:
Exception
- allows any exception to propagate
-
afterTestExecution
Executed after a single test iteration has been executed .- Parameters:
testContext
- the test context- Throws:
Exception
- allows any exception to propagate
-
afterTestMethod
Executed after a test method has been executed (a test method may contain multiple iterations).- Parameters:
testContext
- the test context- Throws:
Exception
- allows any exception to propagate
-
afterTestClass
Executed after all of the tests of a class have bean executed.- Parameters:
testContext
- the test context- Throws:
Exception
- allows any exception to propagate
-