Package net.thucydides.core.steps
Class StepAnnotations
java.lang.Object
net.thucydides.core.steps.StepAnnotations
Utility class used to inject fields into a test case.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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 Details
-
injector
-
injectScenarioStepsInto
Instantiates the step scenario fields in a test case. -
instrumentStepsInField
-
injectAnnotatedPagesObjectInto
Instantiates the @ManagedPages-annotated Pages instance using current WebDriver. -
injectOptionalAnnotatedPagesObjectInto
Instantiates the @ManagedPages-annotated Pages instance using current WebDriver, if the field is present.
-