Class FormcycleEnvironments


  • public final class FormcycleEnvironments
    extends Object
    Main entry point for creating and working with FORMCYCLE E2E test environments. Such an environment consists of a servlet container and a fully configured FORMCYCLE web app.
    Author:
    XIMA MEDIA GmbH
    • Method Detail

      • configureConfigBuilderWithDefaults

        public static void configureConfigBuilderWithDefaults​(IFormcycleEnvironmentConfigBuilder builder)
                                                       throws Exception
        Applies the defaults for a standard FORMCYCLE app to the builder.
        Parameters:
        builder - Builder to configure.
        Throws:
        Exception - When the builder could not be configured.
      • newDefaultConfig

        public static IFormcycleEnvironmentConfig newDefaultConfig​(URI defaultWarFile)
                                                            throws Exception
        Creates a new configuration with the defaults for a standard FORMCYCLE app already applied.
        Parameters:
        defaultWarFile - WAR file to use when no override via a system property was specified.
        Returns:
        A new config with the FORMCYCLE default applied.
        Throws:
        Exception - When the configuration could not be created.
      • newDefaultConfigBuilder

        public static IFormcycleEnvironmentConfigBuilder newDefaultConfigBuilder​(URI defaultWarFile)
                                                                          throws Exception
        Creates a new configuration builder with the defaults for a standard FORMCYCLE app already applied.
        Parameters:
        defaultWarFile - WAR file to use when no override via a system property was specified.
        Returns:
        A new builder with the FORMCYCLE default applied.
        Throws:
        Exception - When the builder could not be configured.
      • newDefaultEnvironment

        public static de.xima.e2e.test_harness_selenium.environment.api.IE2EEnvironment<IIntegrationTestLifecycleListener,​IFormcycleEnvironmentLifecycleState> newDefaultEnvironment​(URI defaultWarFile)
                                                                                                                                                                                    throws Exception
        Creates a new environment with the defaults for a standard FORMCYCLE app already applied.
        Parameters:
        defaultWarFile - WAR file to use when no override via a system property was specified.
        Returns:
        A new environment with the FORMCYCLE defaults applied.
        Throws:
        Exception - When the environment could not be created.
      • newProvisioner

        public static IFormcycleProvisioner newProvisioner​(de.xima.e2e.test_harness_selenium.environment.api.IE2EEnvironment<IIntegrationTestLifecycleListener,​IFormcycleEnvironmentLifecycleState> environment)
        Creates a new provisioner for setting up the FORMCYCLE system before a test case can be run.
        Parameters:
        environment - Current environment with the FORMCYCLE app to set up.
        Returns:
        A provisioner for the given environment.