Class StandaloneConfigurationFactory
java.lang.Object
org.wildfly.testing.junit.extension.api.StandaloneConfigurationFactory
Factory for creating
StandaloneConfiguration instances.
Configuration is resolved in the following order (highest priority first):
- ServiceLoader - custom implementations via META-INF/services
- JUnit Platform configuration properties (junit-platform.properties)
- System properties
- Environment variables
Supported JUnit Platform configuration properties:
jboss.home- Path to WildFly installationwildfly.java.home- Java home to use for the serverwildfly.module.path- Module path for the serverwildfly.java.opts- Additional JVM arguments for the serverwildfly.http.protocol- HTTP protocol (http or https)wildfly.http.port- HTTP/HTTPS portwildfly.debug- Enable remote debugging (true if empty or "true")wildfly.debug.port- Remote debug port (default: 8787)wildfly.debug.suspend- Suspend on startup (default: true)
- Author:
- James R. Perkins
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal StandaloneConfigurationconfiguration(ExtensionContext context) Creates a standalone configuration.protected StandaloneConfigurationconfigure(org.wildfly.core.launcher.StandaloneCommandBuilder commandBuilder) Configure theStandaloneCommandBuilderand create theStandaloneConfiguration.create()Creates a factory instance using the hybrid configuration approach.
-
Constructor Details
-
StandaloneConfigurationFactory
public StandaloneConfigurationFactory()
-
-
Method Details
-
configuration
Creates a standalone configuration.- Parameters:
context- the extension context for accessing JUnit configuration- Returns:
- the standalone configuration
-
configure
protected StandaloneConfiguration configure(org.wildfly.core.launcher.StandaloneCommandBuilder commandBuilder) Configure theStandaloneCommandBuilderand create theStandaloneConfiguration.- Parameters:
commandBuilder- the command builder used to create the configuration- Returns:
- the standalone configuration
-
create
Creates a factory instance using the hybrid configuration approach.- Returns:
- a configuration factory
-