Class ExasolTestSetupFactory


  • public class ExasolTestSetupFactory
    extends Object
    This class creates either Standalone (AWS) test setup and a test container test setup.

    As a decision criteria it uses the existence of the test config file for the standalone setup.

    • Constructor Detail

      • ExasolTestSetupFactory

        public ExasolTestSetupFactory​(Path standaloneConfigurationPath)
        Create a new instance of an ExasolTestSetupFactory.

        Note that if you use this constructor, the factory will decide whether to start a container or a cloud setup based on the existence of the configuration file at the given path. If the file is not there, we automatically fall back to an Exasol container.

        Please use ExasolTestSetupFactory(Path, DispatchMode) with dispatching mode set to ExasolTestSetupFactory.DispatchMode.STANDALONE if you want to enforce using a cloud setup instead.

        Parameters:
        standaloneConfigurationPath - path to the standalone configuration file
      • ExasolTestSetupFactory

        public ExasolTestSetupFactory()
        Create a new instance of an ExasolTestSetupFactory.

        Creates a test setup based on the Exasol Test Container.

      • ExasolTestSetupFactory

        public ExasolTestSetupFactory​(Path standaloneConfigurationPath,
                                      ExasolTestSetupFactory.DispatchMode dispatchMode)
        Create a new instance of an ExasolTestSetupFactory.
        Parameters:
        standaloneConfigurationPath - path to the standalone configuration file
        dispatchMode - defines a rule for how the test setup should be determined
    • Method Detail

      • getTestSetup

        public ExasolTestSetup getTestSetup()
        Get an ExasolTestSetup.

        If the specified standalone config file exists this method returns a Standalone test setup. Otherwise a test-container test setup.

        Returns:
        ExasolTestSetup
      • hasStandaloneConfigurationPath

        public boolean hasStandaloneConfigurationPath()
        Check if the path to the standalone configuration was provided.
        Returns:
        true if the path to the configuration file was provided