Package net.thucydides.core.steps
Class StepAnnotations
- java.lang.Object
-
- net.thucydides.core.steps.StepAnnotations
-
public final class StepAnnotations extends Object
Utility class used to inject fields into a test case.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
injectAnnotatedPagesObjectInto(Object testCase, Pages pages)
Instantiates the @ManagedPages-annotated Pages instance using current WebDriver.void
injectOptionalAnnotatedPagesObjectInto(Object testCase, Pages pages)
Instantiates the @ManagedPages-annotated Pages instance using current WebDriver, if the field is present.static StepAnnotations
injector()
void
injectScenarioStepsInto(Object testCase, StepFactory stepFactory)
Instantiates the step scenario fields in a test case.void
instrumentStepsInField(Object target, Field field, StepFactory stepFactory)
-
-
-
Method Detail
-
injector
public static StepAnnotations injector()
-
injectScenarioStepsInto
public void injectScenarioStepsInto(Object testCase, StepFactory stepFactory)
Instantiates the step scenario fields in a test case.
-
instrumentStepsInField
public void instrumentStepsInField(Object target, Field field, StepFactory stepFactory)
-
injectAnnotatedPagesObjectInto
public void injectAnnotatedPagesObjectInto(Object testCase, Pages pages)
Instantiates the @ManagedPages-annotated Pages instance using current WebDriver.
-
-