org.simplium
Class Util

java.lang.Object
  extended by org.simplium.Util

public final class Util
extends java.lang.Object

Util class used by the Simplium framework.


Constructor Summary
Util()
           
 
Method Summary
static java.lang.annotation.Annotation findAnnotation(java.lang.Class<?> aClass, java.lang.Class<?> aAnnotationClass)
          Methods that returns an annotation from a class.
static java.lang.String[] getBrowsers(Browsers aBrowsers)
          Returns the browser(s) the test case should be run with.
static Enviroment getEnviroment()
          Returns the enviroment the test cases should be executed under.
static void verifyBrowsersAnnotation(Browsers aBrowsers)
           
static void verifyEnviromentsAnnotation(Enviroments aEnviroments)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Util

public Util()
Method Detail

getBrowsers

public static java.lang.String[] getBrowsers(Browsers aBrowsers)
Returns the browser(s) the test case should be run with.

Parameters:
aBrowsers - The Browser annotation.
Returns:
An array with the browsers names.

getEnviroment

public static Enviroment getEnviroment()
Returns the enviroment the test cases should be executed under.

Returns:
The current enviroment.

verifyEnviromentsAnnotation

public static void verifyEnviromentsAnnotation(Enviroments aEnviroments)

verifyBrowsersAnnotation

public static void verifyBrowsersAnnotation(Browsers aBrowsers)

findAnnotation

public static java.lang.annotation.Annotation findAnnotation(java.lang.Class<?> aClass,
                                                             java.lang.Class<?> aAnnotationClass)
Methods that returns an annotation from a class.

Parameters:
aClass - The class that contains the annotation.
aAnnotationClass - The annotation that is requested.
Returns:
The annotation, null if it isn't found.