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 Details

    • 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.
    • injectOptionalAnnotatedPagesObjectInto

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