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 voidafterCleanupTest(TestContext testContext) Executed after the setup method of a test method.default voidafterSetupTest(TestContext testContext) Executed after the setup method of a test method.default voidafterTestClass(TestContext testContext) Executed after all of the tests of a class have bean executed.default voidafterTestExecution(TestContext testContext) Executed after a single test iteration has been executed .default voidafterTestMethod(TestContext testContext) Executed after a test method has been executed (a test method may contain multiple iterations).default voidbeforeCleanupTest(TestContext testContext) Executed before the setup method of a test method.default voidbeforeSetupTest(TestContext testContext) Executed before the setup method of a test method.default voidbeforeTestClass(TestContext testContext) Executed before all of the tests of a class are executed.default voidbeforeTestExecution(TestContext testContext) Executed before a single test iteration is executed.default voidbeforeTestMethod(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
-