net.thucydides.core.annotations
Class TestCaseAnnotations

Package class diagram package TestCaseAnnotations
java.lang.Object
  extended by net.thucydides.core.annotations.TestCaseAnnotations

public final class TestCaseAnnotations
extends Object

Utility class used to inject fields into a test case.

Author:
johnsmart

Method Summary
static TestCaseAnnotations forTestCase(Object testCase)
           
 void injectDriver(org.openqa.selenium.WebDriver driver)
          Instantiate the @Managed-annotated WebDriver instance with current WebDriver if the annotated field is present.
 boolean isUniqueSession()
           
static boolean isUniqueSession(Class<?> testClass)
           
static boolean isWebTest(Class<?> testClass)
           
static boolean supportsWebTests(Class clazz)
          Does this class support web tests? Test cases that support web tests need to have at least a WebDriver field annotated with the @Managed annotation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

forTestCase

public static TestCaseAnnotations forTestCase(Object testCase)

injectDriver

public void injectDriver(org.openqa.selenium.WebDriver driver)
Instantiate the @Managed-annotated WebDriver instance with current WebDriver if the annotated field is present.


supportsWebTests

public static boolean supportsWebTests(Class clazz)
Does this class support web tests? Test cases that support web tests need to have at least a WebDriver field annotated with the @Managed annotation.


isUniqueSession

public boolean isUniqueSession()

isUniqueSession

public static boolean isUniqueSession(Class<?> testClass)

isWebTest

public static boolean isWebTest(Class<?> testClass)


Copyright © 2011-2013 Wakaleo Consulting. All Rights Reserved.