net.thucydides.core.steps
Class StepAnnotations

Package class diagram package StepAnnotations
java.lang.Object
  extended by net.thucydides.core.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(Object scenarioSteps, StepFactory stepFactory, Class<?> scenarioStepsClass)
          Instantiates the step scenario fields in a test case.
static void injectOptionalAnnotatedPagesObjectInto(Object testCase, Pages pages)
          Instantiates the @ManagedPages-annotated Pages instance using current WebDriver, if the field is present.
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(Object scenarioSteps,
                                                 StepFactory stepFactory,
                                                 Class<?> scenarioStepsClass)
Instantiates the step scenario fields in a test case.


injectAnnotatedPagesObjectInto

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


injectOptionalAnnotatedPagesObjectInto

public static void injectOptionalAnnotatedPagesObjectInto(Object testCase,
                                                          Pages pages)
Instantiates the @ManagedPages-annotated Pages instance using current WebDriver, if the field is present.



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