JSF Test Framework: Mockito 1.1.2

org.jboss.test.faces.annotation
Enum Environment.Feature

java.lang.Object
  extended by java.lang.Enum<Environment.Feature>
      extended by org.jboss.test.faces.annotation.Environment.Feature
All Implemented Interfaces:
Serializable, Comparable<Environment.Feature>
Enclosing class:
Environment

public static enum Environment.Feature
extends Enum<Environment.Feature>

The feature of the mocked JSF environment

Author:
asmirnov

Enum Constant Summary
APPLICATION
           
EL_CONTEXT
           
EXTERNAL_CONTEXT
           
FACES_CONTEXT
           
FACTORIES
           
RENDER_KIT
           
RESPONSE_WRITER
           
SERVLET_REQUEST
           
 
Method Summary
static Environment.Feature valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Environment.Feature[] 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

FACTORIES

public static final Environment.Feature FACTORIES

FACES_CONTEXT

public static final Environment.Feature FACES_CONTEXT

EXTERNAL_CONTEXT

public static final Environment.Feature EXTERNAL_CONTEXT

EL_CONTEXT

public static final Environment.Feature EL_CONTEXT

SERVLET_REQUEST

public static final Environment.Feature SERVLET_REQUEST

APPLICATION

public static final Environment.Feature APPLICATION

RENDER_KIT

public static final Environment.Feature RENDER_KIT

RESPONSE_WRITER

public static final Environment.Feature RESPONSE_WRITER
Method Detail

values

public static Environment.Feature[] 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 (Environment.Feature c : Environment.Feature.values())
    System.out.println(c);

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

valueOf

public static Environment.Feature 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

JSF Test Framework: Mockito 1.1.2

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