Skip navigation links
A B C D E F G H I M O P R S T V 

A

AbstractMicronautExtension<C> - Class in io.micronaut.test.extensions
Abstract base class for both JUnit 5 and Spock.
AbstractMicronautExtension() - Constructor for class io.micronaut.test.extensions.AbstractMicronautExtension
 
ACTIVE_MOCKS - Static variable in class io.micronaut.test.condition.TestActiveCondition
 
ACTIVE_SPEC_CLAZZ - Static variable in class io.micronaut.test.condition.TestActiveCondition
 
afterAll(ExtensionContext) - Method in class io.micronaut.test.extensions.junit5.MicronautJunit5Extension
 
afterClass(C) - Method in class io.micronaut.test.extensions.AbstractMicronautExtension
Executed after the class is complete.
afterCleanupTest(TestContext) - Method in interface io.micronaut.test.context.TestExecutionListener
Executed after the setup method of a test method.
afterCleanupTest(TestContext) - Method in class io.micronaut.test.extensions.AbstractMicronautExtension
 
afterEach(C) - Method in class io.micronaut.test.extensions.AbstractMicronautExtension
Executed after each test completes.
afterEach(ExtensionContext) - Method in class io.micronaut.test.extensions.junit5.MicronautJunit5Extension
 
afterSetupTest(TestContext) - Method in interface io.micronaut.test.context.TestExecutionListener
Executed after the setup method of a test method.
afterSetupTest(TestContext) - Method in class io.micronaut.test.extensions.AbstractMicronautExtension
 
afterTestClass(TestContext) - Method in interface io.micronaut.test.context.TestExecutionListener
Executed after all of the tests of a class have bean executed.
afterTestClass(TestContext) - Method in class io.micronaut.test.extensions.AbstractMicronautExtension
Executed after all of the tests of a class have bean executed.
afterTestExecution(TestContext) - Method in interface io.micronaut.test.context.TestExecutionListener
Executed after a single test iteration has been executed .
afterTestExecution(TestContext) - Method in class io.micronaut.test.extensions.AbstractMicronautExtension
Executed after a single test iteration has been executed .
afterTestExecution(ExtensionContext) - Method in class io.micronaut.test.extensions.junit5.MicronautJunit5Extension
 
afterTestMethod(TestContext) - Method in interface io.micronaut.test.context.TestExecutionListener
Executed after a test method has been executed (a test method may contain multiple iterations).
afterTestMethod(TestContext) - Method in class io.micronaut.test.extensions.AbstractMicronautExtension
Executed after a test method has been executed (a test method may contain multiple iterations).
alignMocks(C, Object) - Method in class io.micronaut.test.extensions.AbstractMicronautExtension
 
alignMocks(ExtensionContext, Object) - Method in class io.micronaut.test.extensions.junit5.MicronautJunit5Extension
 
alignMocks(IMethodInvocation, Object) - Method in class io.micronaut.test.extensions.spock.MicronautSpockExtension
 
AnnotationUtils - Class in io.micronaut.test.annotation
Common annotation utilities.
application() - Method in class io.micronaut.test.annotation.MicronautTestValue
 
applicationContext - Variable in class io.micronaut.test.extensions.AbstractMicronautExtension
 

B

beforeAll(ExtensionContext) - Method in class io.micronaut.test.extensions.junit5.MicronautJunit5Extension
 
beforeClass(C, Class<?>, MicronautTestValue) - Method in class io.micronaut.test.extensions.AbstractMicronautExtension
Executed before tests within a class are run.
beforeCleanupTest(TestContext) - Method in interface io.micronaut.test.context.TestExecutionListener
Executed before the setup method of a test method.
beforeCleanupTest(TestContext) - Method in class io.micronaut.test.extensions.AbstractMicronautExtension
 
beforeEach(C, Object, AnnotatedElement, List<Property>) - Method in class io.micronaut.test.extensions.AbstractMicronautExtension
To be called by the different implementations before each test method.
beforeEach(ExtensionContext) - Method in class io.micronaut.test.extensions.junit5.MicronautJunit5Extension
 
beforeSetupTest(TestContext) - Method in interface io.micronaut.test.context.TestExecutionListener
Executed before the setup method of a test method.
beforeSetupTest(TestContext) - Method in class io.micronaut.test.extensions.AbstractMicronautExtension
 
beforeTestClass(TestContext) - Method in interface io.micronaut.test.context.TestExecutionListener
Executed before all of the tests of a class are executed.
beforeTestClass(TestContext) - Method in class io.micronaut.test.extensions.AbstractMicronautExtension
Executed before all of the tests of a class are executed.
beforeTestExecution(TestContext) - Method in interface io.micronaut.test.context.TestExecutionListener
Executed before a single test iteration is executed.
beforeTestExecution(TestContext) - Method in class io.micronaut.test.extensions.AbstractMicronautExtension
Executed before a single test iteration is executed.
beforeTestExecution(ExtensionContext) - Method in class io.micronaut.test.extensions.junit5.MicronautJunit5Extension
 
beforeTestMethod(TestContext) - Method in interface io.micronaut.test.context.TestExecutionListener
Executed before a test method is executed (a test method may contain multiple iterations).
beforeTestMethod(TestContext) - Method in class io.micronaut.test.extensions.AbstractMicronautExtension
Executed before a test method is executed (a test method may contain multiple iterations).
buildMicronautTestValue(Class<?>) - Method in class io.micronaut.test.extensions.junit5.MicronautJunit5Extension
Builds a MicronautTestValue object from the provided class (e.g.

C

contextBuilder() - Method in class io.micronaut.test.annotation.MicronautTestValue
The application context builder to use to construct the context.

D

DISABLED_MESSAGE - Static variable in class io.micronaut.test.extensions.AbstractMicronautExtension
 

E

embeddedApplication - Variable in class io.micronaut.test.extensions.AbstractMicronautExtension
 
environments() - Method in class io.micronaut.test.annotation.MicronautTestValue
 
evaluateExecutionCondition(ExtensionContext) - Method in class io.micronaut.test.extensions.junit5.MicronautJunit5Extension
 

F

findRepeatableAnnotations(AnnotatedElement, Class<A>) - Static method in class io.micronaut.test.annotation.AnnotationUtils
Find all repeatable annotations of annotationType that are either present, indirectly present, or meta-present on the supplied AnnotatedElement.

G

get() - Method in interface io.micronaut.test.support.TestPropertyProvider
 
getApplicationConfiguration() - Method in class io.micronaut.test.support.server.TestEmbeddedServer
 
getApplicationConfiguration() - Method in class io.micronaut.test.support.server.TestExecutableEmbeddedServer
 
getApplicationContext() - Method in class io.micronaut.test.context.TestContext
 
getApplicationContext() - Method in class io.micronaut.test.support.server.TestEmbeddedServer
 
getApplicationContext() - Method in class io.micronaut.test.support.server.TestExecutableEmbeddedServer
 
getHost() - Method in class io.micronaut.test.support.server.TestEmbeddedServer
 
getHost() - Method in class io.micronaut.test.support.server.TestExecutableEmbeddedServer
 
getPort() - Method in class io.micronaut.test.support.server.TestEmbeddedServer
 
getPort() - Method in class io.micronaut.test.support.server.TestExecutableEmbeddedServer
 
getProperties() - Method in interface io.micronaut.test.support.TestPropertyProvider
Allows dynamically providing properties for a test.
getScheme() - Method in class io.micronaut.test.support.server.TestEmbeddedServer
 
getScheme() - Method in class io.micronaut.test.support.server.TestExecutableEmbeddedServer
 
getStore(ExtensionContext) - Method in class io.micronaut.test.extensions.junit5.MicronautJunit5Extension
 
getTestClass() - Method in class io.micronaut.test.context.TestContext
 
getTestException() - Method in class io.micronaut.test.context.TestContext
 
getTestInstance() - Method in class io.micronaut.test.context.TestContext
 
getTestMethod() - Method in class io.micronaut.test.context.TestContext
 
getURI() - Method in class io.micronaut.test.support.server.TestEmbeddedServer
 
getURI() - Method in class io.micronaut.test.support.server.TestExecutableEmbeddedServer
 
getURL() - Method in class io.micronaut.test.support.server.TestEmbeddedServer
 
getURL() - Method in class io.micronaut.test.support.server.TestExecutableEmbeddedServer
 

H

hasExpectedAnnotations(Class<?>) - Method in class io.micronaut.test.extensions.junit5.MicronautJunit5Extension
 

I

interceptAfterEachMethod(InvocationInterceptor.Invocation<Void>, ReflectiveInvocationContext<Method>, ExtensionContext) - Method in class io.micronaut.test.extensions.junit5.MicronautJunit5Extension
 
interceptBeforeEachMethod(InvocationInterceptor.Invocation<Void>, ReflectiveInvocationContext<Method>, ExtensionContext) - Method in class io.micronaut.test.extensions.junit5.MicronautJunit5Extension
 
io.micronaut.test.annotation - package io.micronaut.test.annotation
 
io.micronaut.test.condition - package io.micronaut.test.condition
 
io.micronaut.test.context - package io.micronaut.test.context
 
io.micronaut.test.extensions - package io.micronaut.test.extensions
 
io.micronaut.test.extensions.junit5 - package io.micronaut.test.extensions.junit5
 
io.micronaut.test.extensions.junit5.annotation - package io.micronaut.test.extensions.junit5.annotation
 
io.micronaut.test.extensions.spock - package io.micronaut.test.extensions.spock
 
io.micronaut.test.extensions.spock.annotation - package io.micronaut.test.extensions.spock.annotation
 
io.micronaut.test.support - package io.micronaut.test.support
 
io.micronaut.test.support.server - package io.micronaut.test.support.server
 
isRunning() - Method in class io.micronaut.test.support.server.TestEmbeddedServer
 
isRunning() - Method in class io.micronaut.test.support.server.TestExecutableEmbeddedServer
 
isServer() - Method in class io.micronaut.test.support.server.TestEmbeddedServer
 
isTestSuiteBeanPresent(Class<?>) - Method in class io.micronaut.test.extensions.AbstractMicronautExtension
 

M

matches(ConditionContext) - Method in class io.micronaut.test.condition.TestActiveCondition
 
MicronautJunit5Extension - Class in io.micronaut.test.extensions.junit5
Extension for JUnit 5.
MicronautJunit5Extension() - Constructor for class io.micronaut.test.extensions.junit5.MicronautJunit5Extension
 
MicronautSpockExtension<T extends java.lang.annotation.Annotation> - Class in io.micronaut.test.extensions.spock
Extension for Spock.
MicronautSpockExtension() - Constructor for class io.micronaut.test.extensions.spock.MicronautSpockExtension
 
MicronautTest - Annotation Type in io.micronaut.test.extensions.junit5.annotation
Annotation that can be applied to any JUnit 5 test to make it a Micronaut test.
MicronautTest - Annotation Type in io.micronaut.test.extensions.spock.annotation
Annotation that can be applied to any Spock spec or JUnit 5 test to make it a Micronaut test.
MicronautTestValue - Class in io.micronaut.test.annotation
Value object for the values from any of the MicronautTest annotations.
MicronautTestValue(Class<?>, String[], String[], String[], boolean, boolean, boolean, Class<? extends ApplicationContextBuilder>[], TransactionMode, boolean) - Constructor for class io.micronaut.test.annotation.MicronautTestValue
Default constructor.
MISCONFIGURED_MESSAGE - Static variable in class io.micronaut.test.extensions.AbstractMicronautExtension
 
MockBean - Annotation Type in io.micronaut.test.annotation
Annotation that can be applied on the method level in a test to define a Mock bean using Spock's mocking API.

O

oldValues - Variable in class io.micronaut.test.extensions.AbstractMicronautExtension
 

P

packages() - Method in class io.micronaut.test.annotation.MicronautTestValue
 
postProcessBuilder(ApplicationContextBuilder) - Method in class io.micronaut.test.extensions.AbstractMicronautExtension
Allows subclasses to customize the builder right before context initialization.
PROPERTY - Static variable in class io.micronaut.test.support.server.TestEmbeddedServer
 
PROPERTY - Static variable in class io.micronaut.test.support.server.TestExecutableEmbeddedServer
 
propertySources() - Method in class io.micronaut.test.annotation.MicronautTestValue
One or many references to classpath.

R

rebuildContext() - Method in class io.micronaut.test.annotation.MicronautTestValue
Whether to rebuild the application context before each test method.
refreshScope - Variable in class io.micronaut.test.extensions.AbstractMicronautExtension
 
resolveParameter(ParameterContext, ExtensionContext) - Method in class io.micronaut.test.extensions.junit5.MicronautJunit5Extension
 
resolveTestProperties(C, MicronautTestValue, Map<String, Object>) - Method in class io.micronaut.test.extensions.AbstractMicronautExtension
Resolves any test properties.
resolveTestProperties(ExtensionContext, MicronautTestValue, Map<String, Object>) - Method in class io.micronaut.test.extensions.junit5.MicronautJunit5Extension
 
resolveTestProperties(IMethodInvocation, MicronautTestValue, Map<String, Object>) - Method in class io.micronaut.test.extensions.spock.MicronautSpockExtension
 
rollback() - Method in class io.micronaut.test.annotation.MicronautTestValue
Whether to rollback (if possible) any data access code between each test execution.

S

specDefinition - Variable in class io.micronaut.test.extensions.AbstractMicronautExtension
 
start() - Method in class io.micronaut.test.support.server.TestExecutableEmbeddedServer
 
startApplication() - Method in class io.micronaut.test.annotation.MicronautTestValue
 
startApplicationContext() - Method in class io.micronaut.test.extensions.AbstractMicronautExtension
Starts the application context.
startApplicationContext() - Method in class io.micronaut.test.extensions.spock.MicronautSpockExtension
 
stop() - Method in class io.micronaut.test.support.server.TestExecutableEmbeddedServer
 
supportsParameter(ParameterContext, ExtensionContext) - Method in class io.micronaut.test.extensions.junit5.MicronautJunit5Extension
 

T

TEST_PROPERTY_SOURCE - Static variable in class io.micronaut.test.extensions.AbstractMicronautExtension
The name of the property source that contains test properties.
TEST_ROLLBACK - Static variable in class io.micronaut.test.extensions.AbstractMicronautExtension
 
TEST_TRANSACTION_MODE - Static variable in class io.micronaut.test.extensions.AbstractMicronautExtension
 
TEST_TRANSACTIONAL - Static variable in class io.micronaut.test.extensions.AbstractMicronautExtension
 
TestActiveCondition - Class in io.micronaut.test.condition
A custom Condition that enables inner classes and MockBean instances only for the scope of the test.
TestActiveCondition() - Constructor for class io.micronaut.test.condition.TestActiveCondition
 
TestContext - Class in io.micronaut.test.context
Test context used by TestExecutionListeners.
TestContext(ApplicationContext, Class<?>, AnnotatedElement, Object, Throwable) - Constructor for class io.micronaut.test.context.TestContext
 
TestEmbeddedServer - Class in io.micronaut.test.support.server
An EmbeddedServer implementation that can be enabled by setting micronaut.test.server.url to run tests against and existing running server.
TestEmbeddedServer(URL, ApplicationConfiguration, ApplicationContext) - Constructor for class io.micronaut.test.support.server.TestEmbeddedServer
Default constructor.
TestExecutableEmbeddedServer - Class in io.micronaut.test.support.server
An EmbeddedServer implementation that runs an external executable JAR or native.
TestExecutableEmbeddedServer(String, ApplicationContext, HttpServerConfiguration) - Constructor for class io.micronaut.test.support.server.TestExecutableEmbeddedServer
Default constructor.
TestExecutionListener - Interface in io.micronaut.test.context
Test execution listener.
testProperties - Variable in class io.micronaut.test.extensions.AbstractMicronautExtension
 
TestPropertyProvider - Interface in io.micronaut.test.support
Allows providing application properties dynamically from a test.
transactional() - Method in class io.micronaut.test.annotation.MicronautTestValue
Allow disabling or enabling of automatic transaction wrapping.
transactionMode() - Method in class io.micronaut.test.annotation.MicronautTestValue
TransactionMode - Enum in io.micronaut.test.annotation
Describes how transactions are handled for each test.

V

valueOf(String) - Static method in enum io.micronaut.test.annotation.TransactionMode
Returns the enum constant of this type with the specified name.
values() - Static method in enum io.micronaut.test.annotation.TransactionMode
Returns an array containing the constants of this enum type, in the order they are declared.
visitFeatureAnnotation(T, FeatureInfo) - Method in class io.micronaut.test.extensions.spock.MicronautSpockExtension
 
visitFieldAnnotation(T, FieldInfo) - Method in class io.micronaut.test.extensions.spock.MicronautSpockExtension
 
visitFixtureAnnotation(T, MethodInfo) - Method in class io.micronaut.test.extensions.spock.MicronautSpockExtension
 
visitSpec(SpecInfo) - Method in class io.micronaut.test.extensions.spock.MicronautSpockExtension
 
visitSpecAnnotation(T, SpecInfo) - Method in class io.micronaut.test.extensions.spock.MicronautSpockExtension
 
A B C D E F G H I M O P R S T V 
Skip navigation links