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

@Singleton public class Junit extends Object implements TestFeature
  • Field Details

    • GROUP_ID_JUNIT_JUPITER

      protected static final String GROUP_ID_JUNIT_JUPITER
      See Also:
    • ARTIFACT_ID_JUNIT_JUPITER_API

      protected static final String ARTIFACT_ID_JUNIT_JUPITER_API
      See Also:
    • ARTIFACT_ID_JUNIT_JUPITER_ENGINE

      protected static final String ARTIFACT_ID_JUNIT_JUPITER_ENGINE
      See Also:
    • ARTIFACT_ID_MICRONAUT_TEST_JUNIT_5

      protected static final String ARTIFACT_ID_MICRONAUT_TEST_JUNIT_5
      See Also:
    • DEPENDENCY_JUNIT_JUPITER_API

      protected static final Dependency DEPENDENCY_JUNIT_JUPITER_API
    • DEPENDENCY_JUNIT_JUPITER_ENGINE

      protected static final Dependency DEPENDENCY_JUNIT_JUPITER_ENGINE
    • DEPENDENCY_MICRONAUT_TEST_JUNIT5

      protected static final Dependency DEPENDENCY_MICRONAUT_TEST_JUNIT5
  • 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