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 void checkThatTestCaseIsCorrectlyAnnotated(Class<?> testClass)
           
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.
 
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)

checkThatTestCaseIsCorrectlyAnnotated

public static void checkThatTestCaseIsCorrectlyAnnotated(Class<?> testClass)

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.



Copyright © 2011 Wakaleo Consulting. All Rights Reserved.