Package io.micronaut.maven.testresources
Class TestResourcesConfiguration
java.lang.Object
io.micronaut.maven.testresources.TestResourcesConfiguration
- Direct Known Subclasses:
AbstractTestResourcesMojo
Base configuration class for Test Resources.
- Since:
- 3.5.1
- Author:
- Álvaro Sánchez-Mariscal
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringprotected booleanWhether the test resources service should be kept alive after the build.protected booleanWhether the test resources service should be shared between independent builds (e.g different projects, even built with different build tools).protected StringAllows configuring a namespace for the shared test resources server.protected booleanWhether to enable or disable Micronaut test resources support. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
DISABLED
- See Also:
-
CONFIG_PROPERTY_PREFIX
- See Also:
-
testResourcesEnabled
@Parameter(property="micronaut.test.resources.enabled", defaultValue="false") protected boolean testResourcesEnabledWhether to enable or disable Micronaut test resources support. -
keepAlive
@Parameter(property="keepAlive", defaultValue="false") protected boolean keepAliveWhether the test resources service should be kept alive after the build.
-
-
Constructor Details
-
TestResourcesConfiguration
public TestResourcesConfiguration()
-
-
Method Details
-
isTestResourcesEnabled
public boolean isTestResourcesEnabled()- Returns:
- Whether to enable or disable Micronaut test resources support.
-
isKeepAlive
public boolean isKeepAlive()- Returns:
- Whether the test resources service should be kept alive after the build.
-