net.thucydides.junit.runners
Class TestCaseAnnotations

Package class diagram package TestCaseAnnotations
java.lang.Object
  extended by net.thucydides.junit.runners.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.
 boolean isUniqueSession()
          Instantiate the @Managed-annotated WebDriver instance with current WebDriver.
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.


isUniqueSession

public boolean isUniqueSession()
Instantiate the @Managed-annotated WebDriver instance with current WebDriver.


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.



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