Package io.micronaut.function.aws.test
Class MicronautLambdaJunit5Extension
java.lang.Object
io.micronaut.test.extensions.AbstractMicronautExtension<org.junit.jupiter.api.extension.ExtensionContext>
io.micronaut.test.extensions.junit5.MicronautJunit5Extension
io.micronaut.function.aws.test.MicronautLambdaJunit5Extension
- All Implemented Interfaces:
io.micronaut.test.context.TestExecutionListener
,io.micronaut.test.context.TestMethodInterceptor<Object>
,org.junit.jupiter.api.extension.AfterAllCallback
,org.junit.jupiter.api.extension.AfterEachCallback
,org.junit.jupiter.api.extension.AfterTestExecutionCallback
,org.junit.jupiter.api.extension.BeforeAllCallback
,org.junit.jupiter.api.extension.BeforeEachCallback
,org.junit.jupiter.api.extension.BeforeTestExecutionCallback
,org.junit.jupiter.api.extension.ExecutionCondition
,org.junit.jupiter.api.extension.Extension
,org.junit.jupiter.api.extension.InvocationInterceptor
,org.junit.jupiter.api.extension.ParameterResolver
public class MicronautLambdaJunit5Extension
extends io.micronaut.test.extensions.junit5.MicronautJunit5Extension
Extension for testing Lambda environments with Junit 5.
- Since:
- 2.3.0
- Author:
- ttzn
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.junit.jupiter.api.extension.InvocationInterceptor
org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<T extends Object>
-
Field Summary
Fields inherited from class io.micronaut.test.extensions.AbstractMicronautExtension
applicationContext, DISABLED_MESSAGE, embeddedApplication, MISCONFIGURED_MESSAGE, oldValues, refreshScope, specDefinition, TEST_PROPERTY_SOURCE, TEST_ROLLBACK, TEST_TRANSACTION_MODE, TEST_TRANSACTIONAL, testAnnotationValue, testProperties
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected io.micronaut.test.annotation.MicronautTestValue
buildMicronautTestValue
(Class<?> testClass) protected org.junit.jupiter.api.extension.ExtensionContext.Store
getStore
(org.junit.jupiter.api.extension.ExtensionContext context) protected boolean
hasExpectedAnnotations
(Class<?> testClass) protected void
postProcessBuilder
(io.micronaut.context.ApplicationContextBuilder builder) Methods inherited from class io.micronaut.test.extensions.junit5.MicronautJunit5Extension
afterAll, afterEach, afterTestExecution, alignMocks, beforeAll, beforeEach, beforeTestExecution, evaluateExecutionCondition, interceptAfterEachMethod, interceptBeforeEachMethod, interceptTestFactoryMethod, interceptTestMethod, interceptTestTemplateMethod, resolveParameter, resolveTestProperties, supportsParameter
Methods inherited from class io.micronaut.test.extensions.AbstractMicronautExtension
afterClass, afterCleanupTest, afterSetupTest, afterTestClass, afterTestExecution, afterTestMethod, beforeClass, beforeCleanupTest, beforeEach, beforeSetupTest, beforeTestClass, beforeTestExecution, beforeTestMethod, hasInterceptors, interceptAfterEach, interceptBeforeEach, interceptTest, isTestSuiteBeanPresent, startApplicationContext
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.junit.jupiter.api.extension.InvocationInterceptor
interceptAfterAllMethod, interceptBeforeAllMethod, interceptDynamicTest, interceptDynamicTest, interceptTestClassConstructor
-
Constructor Details
-
MicronautLambdaJunit5Extension
public MicronautLambdaJunit5Extension()
-
-
Method Details
-
postProcessBuilder
protected void postProcessBuilder(io.micronaut.context.ApplicationContextBuilder builder) - Overrides:
postProcessBuilder
in classio.micronaut.test.extensions.AbstractMicronautExtension<org.junit.jupiter.api.extension.ExtensionContext>
-
buildMicronautTestValue
protected io.micronaut.test.annotation.MicronautTestValue buildMicronautTestValue(Class<?> testClass) - Overrides:
buildMicronautTestValue
in classio.micronaut.test.extensions.junit5.MicronautJunit5Extension
-
hasExpectedAnnotations
- Overrides:
hasExpectedAnnotations
in classio.micronaut.test.extensions.junit5.MicronautJunit5Extension
-
getStore
protected org.junit.jupiter.api.extension.ExtensionContext.Store getStore(org.junit.jupiter.api.extension.ExtensionContext context) - Overrides:
getStore
in classio.micronaut.test.extensions.junit5.MicronautJunit5Extension
-