net.thucydides.junit.steps
Class StepAnnotations

Package class diagram package StepAnnotations
java.lang.Object
  extended by net.thucydides.junit.steps.StepAnnotations

public final class StepAnnotations
extends Object

Utility class used to inject fields into a test case.

Author:
johnsmart

Method Summary
static void injectAnnotatedPagesObjectInto(Object testCase, Pages pages)
          Instantiates the @ManagedPages-annotated Pages instance using current WebDriver.
static void injectNestedScenarioStepsInto(ScenarioSteps scenarioSteps, StepFactory stepFactory, Class<? extends ScenarioSteps> scenarioStepsClass)
           
static void injectScenarioStepsInto(Object testCase, StepFactory stepFactory)
          Instantiates the step scenario fields in a test case.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

injectScenarioStepsInto

public static void injectScenarioStepsInto(Object testCase,
                                           StepFactory stepFactory)
Instantiates the step scenario fields in a test case.


injectNestedScenarioStepsInto

public static void injectNestedScenarioStepsInto(ScenarioSteps scenarioSteps,
                                                 StepFactory stepFactory,
                                                 Class<? extends ScenarioSteps> scenarioStepsClass)

injectAnnotatedPagesObjectInto

public static void injectAnnotatedPagesObjectInto(Object testCase,
                                                  Pages pages)
Instantiates the @ManagedPages-annotated Pages instance using current WebDriver.



Copyright © 2011 Wakaleo Consulting. All Rights Reserved.