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 Stringprotected booleanAllows starting the test resources server in debug mode.static final Stringprotected booleanWhether the test resources server should be started in the foreground.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.static final Stringprotected booleanWhether to enable or disable Micronaut test resources support. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisShared()booleanvoidsetDebugServer(boolean debugServer) Whether to start the test resources server in debug mode.voidsetShared(boolean shared) Whether the test resources service should be shared between independent builds.voidsetSharedServerNamespace(String sharedServerNamespace) The shared server namespace (if any).voidsetTestResourcesEnabled(boolean testResourcesEnabled) Whether to enable or disable Micronaut test resources support.
-
Field Details
-
DISABLED
- See Also:
-
CONFIG_PROPERTY_PREFIX
- See Also:
-
TEST_RESOURCES_ENABLED_PROPERTY
- See Also:
-
testResourcesEnabled
@Parameter(property="micronaut.test.resources.enabled", defaultValue="false") protected boolean testResourcesEnabledWhether to enable or disable Micronaut test resources support. -
debugServer
@Parameter(property="micronaut.test.resources.debug-server", defaultValue="false") protected boolean debugServerAllows starting the test resources server in debug mode. The server will be started with the ability to attach a remote debugger on port 8000.- Since:
- 4.2.0
-
foreground
@Parameter(property="micronaut.test.resources.foreground", defaultValue="false") protected boolean foregroundWhether the test resources server should be started in the foreground.- Since:
- 4.7.0
-
-
Constructor Details
-
TestResourcesConfiguration
public TestResourcesConfiguration()
-
-
Method Details
-
isTestResourcesEnabled
- Returns:
- Whether to enable or disable Micronaut test resources support.
-
setTestResourcesEnabled
Whether to enable or disable Micronaut test resources support.- Parameters:
testResourcesEnabled- enabled flag
-
setDebugServer
Whether to start the test resources server in debug mode.- Parameters:
debugServer- debug flag
-