org.jboss.arquillian.api
Enum RunModeType

java.lang.Object
  extended by java.lang.Enum<RunModeType>
      extended by org.jboss.arquillian.api.RunModeType
All Implemented Interfaces:
Serializable, Comparable<RunModeType>

public enum RunModeType
extends Enum<RunModeType>

Describes the different RunModes a Single test can run in.

Version:
$Revision: $
Author:
Aslak Knutsen

Enum Constant Summary
AS_CLIENT
          In AS_CLIENT mode the @Deployment is processed and deployed to the Container, but the test is not executed inside the container.
IN_CONTAINER
          In IN_CONTAINER mode the @Deployment is processed and deployed to the container along side the test case and the test case is executed inside the container.
 
Method Summary
static RunModeType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static RunModeType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

AS_CLIENT

public static final RunModeType AS_CLIENT
In AS_CLIENT mode the @Deployment is processed and deployed to the Container, but the test is not executed inside the container.


IN_CONTAINER

public static final RunModeType IN_CONTAINER
In IN_CONTAINER mode the @Deployment is processed and deployed to the container along side the test case and the test case is executed inside the container.
This is the default mode when none specified.

Method Detail

values

public static RunModeType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (RunModeType c : RunModeType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static RunModeType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.