Package io.micronaut.test.condition
Class TestActiveCondition
java.lang.Object
io.micronaut.test.condition.TestActiveCondition
- All Implemented Interfaces:
io.micronaut.context.condition.Condition
,Predicate<io.micronaut.context.condition.ConditionContext>
A custom
Condition
that enables inner classes and MockBean
instances only for the scope of the test.- Since:
- 1.0
- Author:
- graemerocher
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
matches
(io.micronaut.context.condition.ConditionContext context) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.context.condition.Condition
test
-
Field Details
-
ACTIVE_MOCKS
- See Also:
-
ACTIVE_SPEC_CLAZZ
- See Also:
-
-
Constructor Details
-
TestActiveCondition
public TestActiveCondition()
-
-
Method Details
-
matches
public boolean matches(io.micronaut.context.condition.ConditionContext context) - Specified by:
matches
in interfaceio.micronaut.context.condition.Condition
-