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
Modifier and TypeFieldDescriptionstatic final String
protected boolean
Allows starting the test resources server in debug mode.static final String
protected boolean
Whether the test resources server should be started in the foreground.protected boolean
Whether the test resources service should be shared between independent builds (e.g. different projects, even built with different build tools).protected String
Allows configuring a namespace for the shared test-resources server.static final String
protected boolean
Whether to enable or disable Micronaut test resources support. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isShared()
boolean
void
setDebugServer
(boolean debugServer) Whether to start the test resources server in debug mode.void
setShared
(boolean shared) Whether the test resources service should be shared between independent builds.void
setSharedServerNamespace
(String sharedServerNamespace) The shared server namespace (if any).void
setTestResourcesEnabled
(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
-