Class RunModeUtils

java.lang.Object
org.jboss.arquillian.container.test.impl.RunModeUtils

public final class RunModeUtils extends Object
RunModeUtils
Author:
Aslak Knutsen
  • Method Summary

    Modifier and Type
    Method
    Description
    static boolean
    isLocalContainer(org.jboss.arquillian.container.spi.Container container)
    Check if this Container DEFAULTs to the Local protocol.
    static boolean
    isRunAsClient(org.jboss.arquillian.container.spi.client.deployment.Deployment deployment, org.jboss.arquillian.test.spi.TestClass testClass, Method testMethod)
    Returns if the given test should run as client.
    static boolean
    isRunAsClientAndCheck(org.jboss.arquillian.container.spi.client.deployment.Deployment deployment, org.jboss.arquillian.test.spi.TestClass testClass, Method testMethod)
    Returns if the given test should run as client and also checks for a confusing use case, when the test is not intended to be run as a client test - in this case logs a warning. see: ARQ-1937

    Methods inherited from class java.lang.Object

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

    • isRunAsClient

      public static boolean isRunAsClient(org.jboss.arquillian.container.spi.client.deployment.Deployment deployment, org.jboss.arquillian.test.spi.TestClass testClass, Method testMethod)
      Returns if the given test should run as client.

      Verify @Deployment.testable vs @RunAsClient on Class or Method level

    • isRunAsClientAndCheck

      public static boolean isRunAsClientAndCheck(org.jboss.arquillian.container.spi.client.deployment.Deployment deployment, org.jboss.arquillian.test.spi.TestClass testClass, Method testMethod)
      Returns if the given test should run as client and also checks for a confusing use case, when the test is not intended to be run as a client test - in this case logs a warning. see: ARQ-1937
    • isLocalContainer

      public static boolean isLocalContainer(org.jboss.arquillian.container.spi.Container container)
      Check if this Container DEFAULTs to the Local protocol.

      Hack to get around ARQ-391

      Returns:
      true if DeployableContianer.getDefaultProtocol == Local