Arquillian Container Test Implementation Base 1.0.1.Final

org.jboss.arquillian.container.test.impl
Class RunModeUtils

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

public final class RunModeUtils
extends Object

RunModeUtils

Version:
$Revision: $
Author:
Aslak Knutsen

Method Summary
static boolean isLocalContainer(Container container)
          Check if this Container DEFAULTs to the Local protocol.
static boolean isRunAsClient(Deployment deployment, Class<?> testClass, Method testMethod)
          Check is this should run as client.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isRunAsClient

public static boolean isRunAsClient(Deployment deployment,
                                    Class<?> testClass,
                                    Method testMethod)
Check is this should run as client. Verify @Deployment.testable vs @RunAsClient on Class or Method level

Parameters:
deployment -
testClass -
testMethod -
Returns:

isLocalContainer

public static boolean isLocalContainer(Container container)
Check if this Container DEFAULTs to the Local protocol. Hack to get around ARQ-391

Parameters:
container -
Returns:
true if DeployableContianer.getDefaultProtocol == Local

Arquillian Container Test Implementation Base 1.0.1.Final

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.