Class StandaloneConfigurationFactory

java.lang.Object
org.wildfly.testing.junit.extension.api.StandaloneConfigurationFactory

public class StandaloneConfigurationFactory extends Object
Factory for creating StandaloneConfiguration instances.

Configuration is resolved in the following order (highest priority first):

  1. ServiceLoader - custom implementations via META-INF/services
  2. JUnit Platform configuration properties (junit-platform.properties)
  3. System properties
  4. Environment variables

Supported JUnit Platform configuration properties:

  • jboss.home - Path to WildFly installation
  • wildfly.java.home - Java home to use for the server
  • wildfly.module.path - Module path for the server
  • wildfly.java.opts - Additional JVM arguments for the server
  • wildfly.http.protocol - HTTP protocol (http or https)
  • wildfly.http.port - HTTP/HTTPS port
  • wildfly.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 Details

    • StandaloneConfigurationFactory

      public StandaloneConfigurationFactory()
  • Method Details

    • configuration

      public final StandaloneConfiguration configuration(ExtensionContext context)
      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 the StandaloneCommandBuilder and create the StandaloneConfiguration.
      Parameters:
      commandBuilder - the command builder used to create the configuration
      Returns:
      the standalone configuration
    • create

      public static StandaloneConfigurationFactory create()
      Creates a factory instance using the hybrid configuration approach.
      Returns:
      a configuration factory