Class PagesAnnotatedField


  • public class PagesAnnotatedField
    extends Object
    The Pages object keeps track of the Page Objects used during the tests.
    Author:
    johnsmart
    • Constructor Detail

      • PagesAnnotatedField

        protected PagesAnnotatedField​(Field field,
                                      ManagedPages annotation)
    • Method Detail

      • findFirstAnnotatedField

        public static Optional<PagesAnnotatedField> findFirstAnnotatedField​(Class<?> testClass)
        Find the first field in the class annotated with the Managed annotation.
      • findOptionalAnnotatedField

        public static Optional<PagesAnnotatedField> findOptionalAnnotatedField​(Class<?> testClass)
        Find the first field in the class annotated with the ManagedPages annotation.
      • getFieldType

        public Class<?> getFieldType()
      • setValue

        public void setValue​(Object testCase,
                             Pages pages)
      • getDefaultBaseUrl

        public String getDefaultBaseUrl()