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 TypeMethodDescriptionvoidinjectAnnotatedPagesObjectInto(Object testCase, Pages pages) Instantiates the @ManagedPages-annotated Pages instance using current WebDriver.voidinjectOptionalAnnotatedPagesObjectInto(Object testCase, Pages pages) Instantiates the @ManagedPages-annotated Pages instance using current WebDriver, if the field is present.static StepAnnotationsinjector()voidinjectScenarioStepsInto(Object testCase, StepFactory stepFactory) Instantiates the step scenario fields in a test case.voidinstrumentStepsInField(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.
-