Enum FluentTestContainer

    • Enum Constant Detail

      • FLUENT_TEST

        public static final FluentTestContainer FLUENT_TEST
        Instance of FluentTestContainer.
    • Method Detail

      • values

        public static FluentTestContainer[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (FluentTestContainer c : FluentTestContainer.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static FluentTestContainer valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • instance

        public FluentAdapter instance()
        Returns single instance of adapter across all Cucumber steps.
        Returns:
        instance of fluent adapter
      • reset

        public void reset()
        Reset instance of FluentAdapter stored in container.
      • getControlContainer

        protected FluentControlContainer getControlContainer()
        Provide control container across different classes.
        Returns:
        control container instance.
      • setConfigClass

        public static void setConfigClass​(Class clazz)
        Sets config class - needed to enable annotation configuration.
        Parameters:
        clazz - class annotated with @RunWith(FluentCucumber.class)
      • getSharedMutator

        protected SharedMutator getSharedMutator()
        Returns used inside container SharedMutator
        Returns:
        SharedMutator instance
      • injector

        public FluentInjector injector()
        Injector used in FluentObjectFactory for creating instances
        Returns:
        fluent injector without loaded full FluentControl context
      • instantiatePages

        public void instantiatePages​(Object obj)
        Creating new instances of pages.
        Parameters:
        obj - container obj which contains pages to initialize