Enum FluentTestContainer

    • Enum Constant Detail


        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())
        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.)
        name - the name of the enum constant to be returned.
        the enum constant with the specified name
        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.

        If the adapter hasn't been initialized, then initializes the fields of this container, and the FluentAdapter itself.

        instance of fluent adapter
      • reset

        public void reset()
        Resets all properties of this container.
      • getControlContainer

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

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

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

        public void instantiatePages​(Object obj)
        Instantiates @Page annotated fields in the provided container class, if it has any.

        The container class is most likely a subclass of FluentCucumberTest.

        obj - container object which contains pages to initialize
        See Also: