Package com.exasol.exasoltestsetup
Class ExasolTestSetupFactory
- java.lang.Object
-
- com.exasol.exasoltestsetup.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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classExasolTestSetupFactory.DispatchModeDispatching modes for the test setup.
-
Constructor Summary
Constructors Constructor Description ExasolTestSetupFactory()Create a new instance of anExasolTestSetupFactory.ExasolTestSetupFactory(Path standaloneConfigurationPath)Create a new instance of anExasolTestSetupFactory.ExasolTestSetupFactory(Path standaloneConfigurationPath, ExasolTestSetupFactory.DispatchMode dispatchMode)Create a new instance of anExasolTestSetupFactory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ExasolTestSetupgetTestSetup()Get anExasolTestSetup.booleanhasStandaloneConfigurationPath()Check if the path to the standalone configuration was provided.
-
-
-
Constructor Detail
-
ExasolTestSetupFactory
public ExasolTestSetupFactory(Path standaloneConfigurationPath)
Create a new instance of anExasolTestSetupFactory.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 toExasolTestSetupFactory.DispatchMode.STANDALONEif 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 anExasolTestSetupFactory.Creates a test setup based on the Exasol Test Container.
-
ExasolTestSetupFactory
public ExasolTestSetupFactory(Path standaloneConfigurationPath, ExasolTestSetupFactory.DispatchMode dispatchMode)
Create a new instance of anExasolTestSetupFactory.- Parameters:
standaloneConfigurationPath- path to the standalone configuration filedispatchMode- defines a rule for how the test setup should be determined
-
-
Method Detail
-
getTestSetup
public ExasolTestSetup getTestSetup()
Get anExasolTestSetup.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:
trueif the path to the configuration file was provided
-
-