Class SequentialExecutionConfiguration
- java.lang.Object
-
- de.rwth.swc.coffee4j.engine.configuration.execution.SequentialExecutionConfiguration
-
public final class SequentialExecutionConfiguration extends Object
The complete reusable part of the configuration for a combinatorial test input. This means that multiple combinatorial tests can be executed with the sameSequentialExecutionConfiguration
, as generally only the testModel changes. Includes a factory for creating aSequentialCombinatorialTestManager
,ModelConverter
,FaultCharacterizationAlgorithm
s, generators for initial test inputs, reporters and converters.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SequentialExecutionConfiguration.Builder
The realization of the builder pattern for a quick and readable construction of a new configuration.
-
Method Summary
-
-
-
Method Detail
-
getManagerFactory
public CombinatorialTestManagerFactory getManagerFactory()
- Returns:
- the factory used to create a new manager for a combinatorial test
-
getModelConverterFactory
public ModelConverterFactory getModelConverterFactory()
- Returns:
- the factory used to create a new manager for an input parameter testModel
-
getConflictDetectionConfiguration
public ConflictDetectionConfiguration getConflictDetectionConfiguration()
-
getCharacterizationAlgorithmFactory
public Optional<FaultCharacterizationAlgorithmFactory> getCharacterizationAlgorithmFactory()
- Returns:
- an optional containing the factory for creating new characterization algorithms if one is configured,
otherwise and empty
Optional
is returned
-
getClassificationStrategyFactory
public ClassificationStrategyFactory getClassificationStrategyFactory()
-
getGenerators
public List<TestInputGroupGenerator> getGenerators()
- Returns:
- all generators which should be used for generating initial test inputs. May be empty
-
getPrioritizer
public TestInputPrioritizer getPrioritizer()
- Returns:
- the prioritizer which shall be used to prioritize the inputs generated by the
generators
. Is nevernull
-
getExecutionReporters
public List<SequentialExecutionReporter> getExecutionReporters()
- Returns:
- all reporter for listening to interesting events during the generating and execution. May be empty
-
getArgumentConverters
public List<ArgumentConverter> getArgumentConverters()
- Returns:
- all argument converter for converting reports and identifiers for test input groups. May be empty
-
getExecutionMode
public ExecutionMode getExecutionMode()
- Returns:
- the execution mode for executing the test inputs in groups
-
isConstraintGenerator
public boolean isConstraintGenerator()
- Returns:
- whether test is used for generating error-constraints
-
executionConfiguration
public static SequentialExecutionConfiguration.Builder executionConfiguration()
Initializes the builder pattern forSequentialExecutionConfiguration
- Returns:
- a new
SequentialExecutionConfiguration.Builder
-
toBuilder
public SequentialExecutionConfiguration.Builder toBuilder()
Constructs a instance of theSequentialExecutionConfiguration.Builder
with the values of this configuration. Can be used to extend the configuration without rebuilding it from scratch.- Returns:
- the instance with the same values as the current configuration
-
-