public class TestResourcesConfiguration extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CONFIG_PROPERTY_PREFIX |
static String |
DISABLED |
protected boolean |
keepAlive
Whether the test resources service should be kept alive after the build.
|
protected boolean |
shared
Whether the test resources service should be shared between independent builds
(e.g different projects, even built with different build tools).
|
protected String |
sharedServerNamespace
Allows configuring a namespace for the shared test resources server.
|
protected boolean |
testResourcesEnabled
Whether to enable or disable Micronaut test resources support.
|
Constructor and Description |
---|
TestResourcesConfiguration() |
Modifier and Type | Method and Description |
---|---|
String |
getSharedServerNamespace() |
boolean |
isKeepAlive() |
boolean |
isShared() |
boolean |
isTestResourcesEnabled() |
public static final String DISABLED
public static final String CONFIG_PROPERTY_PREFIX
@Parameter(property="micronaut.test.resources.enabled", defaultValue="false") protected boolean testResourcesEnabled
@Parameter(property="micronaut.test.resources.shared", defaultValue="false") protected boolean shared
@Parameter(property="keepAlive", defaultValue="false") protected boolean keepAlive
@Parameter(property="micronaut.test.resources.namespace") protected String sharedServerNamespace
public boolean isTestResourcesEnabled()
public boolean isShared()
public boolean isKeepAlive()
public String getSharedServerNamespace()
Copyright © 2020–2023 Micronaut. All rights reserved.