Class TestEnvironment

java.lang.Object
org.wildfly.plugin.common.Environment
org.wildfly.plugin.tests.TestEnvironment

public class TestEnvironment extends org.wildfly.plugin.common.Environment
Author:
James R. Perkins
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    The host name specified by the wildfly.management.hostname system property or localhost by default.
    static final int
    The port specified by the wildfly.http.port system property or 8880 by default.
    static final int
    The port specified by the wildfly.management.port system property or 9990 by default.
    static final long
    The default server startup timeout specified by wildfly.timeout, default is 60 seconds.
    static final Path
    The default WildFly home directory specified by the wildfly.dist system property.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
     
    static boolean
    isValidWildFlyHome(Path wildflyHome)
     
    static void
     

    Methods inherited from class org.wildfly.plugin.common.Environment

    getJavaCommand, getModularJvmArguments, isModularJvm, isWindows

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • WILDFLY_HOME

      public static final Path WILDFLY_HOME
      The default WildFly home directory specified by the wildfly.dist system property.

      Note that the wildfly.dist will not match the path specified here. The WildFly distribution is copied to a temporary directory to keep the environment clean. }

    • HOSTNAME

      public static final String HOSTNAME
      The host name specified by the wildfly.management.hostname system property or localhost by default.
    • PORT

      public static final int PORT
      The port specified by the wildfly.management.port system property or 9990 by default.
    • HTTP_PORT

      public static final int HTTP_PORT
      The port specified by the wildfly.http.port system property or 8880 by default.
    • TIMEOUT

      public static final long TIMEOUT
      The default server startup timeout specified by wildfly.timeout, default is 60 seconds.
  • Constructor Details

    • TestEnvironment

      public TestEnvironment()
  • Method Details

    • isModularJvm

      public static boolean isModularJvm()
    • isValidWildFlyHome

      public static boolean isValidWildFlyHome(Path wildflyHome)
    • validateWildFlyHome

      public static void validateWildFlyHome(Path wildflyHome)