Package io.micronaut.maven.testresources
Class TestResourcesHelper
java.lang.Object
io.micronaut.maven.testresources.TestResourcesHelper
Utility class to stop Test Resources service.
-
Constructor Summary
ConstructorDescriptionTestResourcesHelper
(boolean enabled, boolean shared, File buildDirectory, Integer explicitPort, Integer clientTimeout, Integer serverIdleTimeoutMinutes, org.apache.maven.project.MavenProject mavenProject, org.apache.maven.execution.MavenSession mavenSession, DependencyResolutionService dependencyResolutionService, org.apache.maven.toolchain.ToolchainManager toolchainManager, String testResourcesVersion, boolean classpathInference, List<org.apache.maven.model.Dependency> testResourcesDependencies, String sharedServerNamespace, boolean debugServer, boolean foreground) TestResourcesHelper
(org.apache.maven.execution.MavenSession mavenSession, boolean enabled, boolean shared, File buildDirectory) -
Method Summary
Modifier and TypeMethodDescriptioncomputeSystemProperties
(io.micronaut.testresources.buildtools.ServerSettings serverSettings) Computes the system properties to set for the test resources client to be able to connect to the server.void
setSharedServerNamespace
(String sharedServerNamespace) void
start()
Starts the Test Resources Service.void
stop
(boolean quiet) Contains the logic to stop the Test Resources Service.
-
Constructor Details
-
TestResourcesHelper
public TestResourcesHelper(boolean enabled, boolean shared, File buildDirectory, Integer explicitPort, Integer clientTimeout, Integer serverIdleTimeoutMinutes, org.apache.maven.project.MavenProject mavenProject, org.apache.maven.execution.MavenSession mavenSession, DependencyResolutionService dependencyResolutionService, org.apache.maven.toolchain.ToolchainManager toolchainManager, String testResourcesVersion, boolean classpathInference, List<org.apache.maven.model.Dependency> testResourcesDependencies, String sharedServerNamespace, boolean debugServer, boolean foreground) -
TestResourcesHelper
public TestResourcesHelper(org.apache.maven.execution.MavenSession mavenSession, boolean enabled, boolean shared, File buildDirectory)
-
-
Method Details
-
start
Starts the Test Resources Service.- Throws:
org.apache.maven.plugin.MojoExecutionException
-
computeSystemProperties
public Map<String,String> computeSystemProperties(io.micronaut.testresources.buildtools.ServerSettings serverSettings) Computes the system properties to set for the test resources client to be able to connect to the server.- Parameters:
serverSettings
- The server settings- Returns:
- The system properties
-
stop
Contains the logic to stop the Test Resources Service.- Parameters:
quiet
- Whether to perform logging or not.- Throws:
org.apache.maven.plugin.MojoExecutionException
-