org.testatoo.config.cartridge
Enum TestatooEvaluator

java.lang.Object
  extended by java.lang.Enum<TestatooEvaluator>
      extended by org.testatoo.config.cartridge.TestatooEvaluator
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TestatooEvaluator>

public enum TestatooEvaluator
extends java.lang.Enum<TestatooEvaluator>

Define all implementations supported in Testatoo.


Enum Constant Summary
SELENIUM
          Selenium
 
Method Summary
static TestatooEvaluator from(java.lang.Object instance)
          For a given implementation instance (i.e.
 boolean isInstance(java.lang.Object o)
          Check wheter given object is an instance of this implementation.
 boolean isPresent()
          Check wheter this implementation is on the classpath
static TestatooEvaluator valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TestatooEvaluator[] 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

SELENIUM

public static final TestatooEvaluator SELENIUM
Selenium

Method Detail

values

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

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

valueOf

public static TestatooEvaluator valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

isPresent

public boolean isPresent()
Check wheter this implementation is on the classpath

Returns:
true if the implementation is available

isInstance

public boolean isInstance(java.lang.Object o)
Check wheter given object is an instance of this implementation. Note that this implementation must be on the classpath (isPresent() must be true).

Parameters:
o - the instance to check
Returns:
true if it is the case.

from

public static TestatooEvaluator from(java.lang.Object instance)
For a given implementation instance (i.e. Selenium session, WebDriver, ...) return the TestatooEvaluator instance matching it

Parameters:
instance - The object instance
Returns:
The TestatooEvaluator instance matching this implementation


Copyright © 2008-2010 Ovea. All Rights Reserved.