Class TestResourcesConfiguration

java.lang.Object
io.micronaut.maven.testresources.TestResourcesConfiguration
Direct Known Subclasses:
AbstractTestResourcesMojo

public class TestResourcesConfiguration extends Object
Base configuration class for Test Resources.
Since:
3.5.1
Author:
Álvaro Sánchez-Mariscal
  • Field Details

    • DISABLED

      public static final String DISABLED
      See Also:
    • CONFIG_PROPERTY_PREFIX

      public static final String CONFIG_PROPERTY_PREFIX
      See Also:
    • testResourcesEnabled

      @Parameter(property="micronaut.test.resources.enabled", defaultValue="false") protected boolean testResourcesEnabled
      Whether to enable or disable Micronaut test resources support.
    • shared

      @Parameter(property="micronaut.test.resources.shared", defaultValue="false") protected boolean shared
      Whether the test resources service should be shared between independent builds (e.g different projects, even built with different build tools).
    • keepAlive

      @Parameter(property="keepAlive", defaultValue="false") protected boolean keepAlive
      Whether the test resources service should be kept alive after the build.
    • sharedServerNamespace

      @Parameter(property="micronaut.test.resources.namespace") protected String sharedServerNamespace
      Allows configuring a namespace for the shared test resources server. This can be used in case it makes sense to have different instances of shared services, for example when independent builds sets share different services.
      Since:
      3.5.1
  • Constructor Details

    • TestResourcesConfiguration

      public TestResourcesConfiguration()
  • Method Details

    • isTestResourcesEnabled

      public boolean isTestResourcesEnabled()
      Returns:
      Whether to enable or disable Micronaut test resources support.
    • isShared

      public boolean isShared()
      Returns:
      Whether the test resources service should be shared between independent builds.
    • isKeepAlive

      public boolean isKeepAlive()
      Returns:
      Whether the test resources service should be kept alive after the build.
    • getSharedServerNamespace

      public String getSharedServerNamespace()
      Returns:
      The shared server namespace (if any).