Class TestActiveCondition

java.lang.Object
io.micronaut.test.condition.TestActiveCondition
All Implemented Interfaces:
io.micronaut.context.condition.Condition, Predicate<io.micronaut.context.condition.ConditionContext>

public class TestActiveCondition extends Object implements io.micronaut.context.condition.Condition
A custom Condition that enables inner classes and MockBean instances only for the scope of the test.
Since:
1.0
Author:
graemerocher
  • Field Details

  • Constructor Details

    • TestActiveCondition

      public TestActiveCondition()
  • Method Details

    • matches

      public boolean matches(io.micronaut.context.condition.ConditionContext context)
      Specified by:
      matches in interface io.micronaut.context.condition.Condition