Class Junit

java.lang.Object
io.micronaut.starter.feature.test.Junit
All Implemented Interfaces:
io.micronaut.core.naming.Described, io.micronaut.core.naming.Named, io.micronaut.core.order.Ordered, DefaultFeature, Feature, TestFeature

@Requires(property="micronaut.starter.feature.junit.enabled", value="true", defaultValue="true") @Singleton public class Junit extends Object implements TestFeature
  • Constructor Details

    • Junit

      public Junit()
  • Method Details

    • getName

      @NonNull public @NonNull String getName()
      Description copied from interface: Feature
      The name of the feature. It must be unique.
      Specified by:
      getName in interface Feature
      Specified by:
      getName in interface io.micronaut.core.naming.Named
      Returns:
      the name of the feature
    • doApply

      public void doApply(GeneratorContext generatorContext)
      Specified by:
      doApply in interface TestFeature
    • getTestFramework

      public TestFramework getTestFramework()
      Specified by:
      getTestFramework in interface TestFeature