Class StepAnnotations

java.lang.Object
net.thucydides.core.steps.StepAnnotations

public final class StepAnnotations
extends java.lang.Object
Utility class used to inject fields into a test case.
  • Method Summary

    Modifier and Type Method Description
    void injectAnnotatedPagesObjectInto​(java.lang.Object testCase, Pages pages)
    Instantiates the @ManagedPages-annotated Pages instance using current WebDriver.
    void injectOptionalAnnotatedPagesObjectInto​(java.lang.Object testCase, Pages pages)
    Instantiates the @ManagedPages-annotated Pages instance using current WebDriver, if the field is present.
    static StepAnnotations injector()  
    void injectScenarioStepsInto​(java.lang.Object testCase, StepFactory stepFactory)
    Instantiates the step scenario fields in a test case.
    void instrumentStepsInField​(java.lang.Object target, java.lang.reflect.Field field, StepFactory stepFactory)  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • injector

      public static StepAnnotations injector()
    • injectScenarioStepsInto

      public void injectScenarioStepsInto​(java.lang.Object testCase, StepFactory stepFactory)
      Instantiates the step scenario fields in a test case.
    • instrumentStepsInField

      public void instrumentStepsInField​(java.lang.Object target, java.lang.reflect.Field field, StepFactory stepFactory)
    • injectAnnotatedPagesObjectInto

      public void injectAnnotatedPagesObjectInto​(java.lang.Object testCase, Pages pages)
      Instantiates the @ManagedPages-annotated Pages instance using current WebDriver.
    • injectOptionalAnnotatedPagesObjectInto

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