Class CombinatorialTestConsumerManagerConfiguration.Builder
- java.lang.Object
-
- de.rwth.swc.coffee4j.model.manager.CombinatorialTestConsumerManagerConfiguration.Builder
-
- Enclosing class:
- CombinatorialTestConsumerManagerConfiguration
public static final class CombinatorialTestConsumerManagerConfiguration.Builder extends java.lang.ObjectThe realization of the builder pattern for a quick and readable construction of a new configuration.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CombinatorialTestConsumerManagerConfiguration.BuilderargumentConverter(de.rwth.swc.coffee4j.engine.report.ArgumentConverter argumentConverter)Adds the argument converter to convert report arguments from engine to testModel representations.CombinatorialTestConsumerManagerConfiguration.BuilderargumentConverters(de.rwth.swc.coffee4j.engine.report.ArgumentConverter... arguementConverters)Adds the argument converters to convert report arguments from engine to testModel representations.CombinatorialTestConsumerManagerConfiguration.BuilderargumentConverters(java.util.Collection<de.rwth.swc.coffee4j.engine.report.ArgumentConverter> argumentConverters)Adds the argument converters to convert report arguments from engine to testModel representations.CombinatorialTestConsumerManagerConfigurationbuild()Creates a new configuration based on the supplied values.CombinatorialTestConsumerManagerConfiguration.BuilderexecutionReporter(ExecutionReporter executionReporter)Adds one execution reporter to listen to important events during combinatorial test execution.CombinatorialTestConsumerManagerConfiguration.BuilderexecutionReporters(ExecutionReporter... executionReporters)Adds all execution reports to listen to important events during combinatorial test execution.CombinatorialTestConsumerManagerConfiguration.BuilderexecutionReporters(java.util.Collection<ExecutionReporter> executionReporters)Adds all execution reporters to listen to important events during combinatorial test execution.CombinatorialTestConsumerManagerConfiguration.BuilderfaultCharacterizationAlgorithmFactory(de.rwth.swc.coffee4j.engine.characterization.FaultCharacterizationAlgorithmFactory characterizationAlgorithmFactory)Sets which factory shall be used to create newFaultCharacterizationAlgorithminstances during combinatorial testing.CombinatorialTestConsumerManagerConfiguration.Buildergenerator(de.rwth.swc.coffee4j.engine.generator.TestInputGroupGenerator generator)Adds one generator for initialTestInputGroupgeneration.CombinatorialTestConsumerManagerConfiguration.Buildergenerators(de.rwth.swc.coffee4j.engine.generator.TestInputGroupGenerator... generators)Adds all generators for initialTestInputGroupgeneration.CombinatorialTestConsumerManagerConfiguration.Buildergenerators(java.util.Collection<de.rwth.swc.coffee4j.engine.generator.TestInputGroupGenerator> generators)Adds all generators for initialTestInputGroupgeneration.CombinatorialTestConsumerManagerConfiguration.BuildermanagerFactory(CombinatorialTestManagerFactory managerFactory)Sets which factory shall be used to create newCombinatorialTestManagerinstances.CombinatorialTestConsumerManagerConfiguration.BuildermodelConverterFactory(ModelConverterFactory modelConverterFactory)Sets which factory shall be used to create newModelConverterinstances.CombinatorialTestConsumerManagerConfiguration.BuildersetConflictDetectionConfiguration(de.rwth.swc.coffee4j.engine.conflict.ConflictDetectionConfiguration constraintDiagnosisEnabled)
-
-
-
Method Detail
-
managerFactory
public CombinatorialTestConsumerManagerConfiguration.Builder managerFactory(CombinatorialTestManagerFactory managerFactory)
Sets which factory shall be used to create newCombinatorialTestManagerinstances. The default creates new ones using aCachingDelegatingCombinatorialTestManagerwith aHashMapTestResultCachewrapped around aBasicCombinatorialTestManager.- Parameters:
managerFactory- the factory for creating new managers. Must not benullwhenbuild()is called- Returns:
- this
-
modelConverterFactory
public CombinatorialTestConsumerManagerConfiguration.Builder modelConverterFactory(ModelConverterFactory modelConverterFactory)
Sets which factory shall be used to create newModelConverterinstances. The default is aIndexBasedModelConverter.- Parameters:
modelConverterFactory- the factory for creating new converters. Must not benullwhenbuild()is called- Returns:
- this
-
faultCharacterizationAlgorithmFactory
public CombinatorialTestConsumerManagerConfiguration.Builder faultCharacterizationAlgorithmFactory(de.rwth.swc.coffee4j.engine.characterization.FaultCharacterizationAlgorithmFactory characterizationAlgorithmFactory)
Sets which factory shall be used to create newFaultCharacterizationAlgorithminstances during combinatorial testing. The default value isnull, which means no fault characterization will be used.- Parameters:
characterizationAlgorithmFactory- the factory for creating new converters. Can benullwhen callingbuild()to indicate that no fault characterization is used- Returns:
- this
-
setConflictDetectionConfiguration
public CombinatorialTestConsumerManagerConfiguration.Builder setConflictDetectionConfiguration(de.rwth.swc.coffee4j.engine.conflict.ConflictDetectionConfiguration constraintDiagnosisEnabled)
-
executionReporter
public CombinatorialTestConsumerManagerConfiguration.Builder executionReporter(ExecutionReporter executionReporter)
Adds one execution reporter to listen to important events during combinatorial test execution.- Parameters:
executionReporter- the reporter to be added. Must not benull- Returns:
- this
-
executionReporters
public CombinatorialTestConsumerManagerConfiguration.Builder executionReporters(ExecutionReporter... executionReporters)
Adds all execution reports to listen to important events during combinatorial test execution.- Parameters:
executionReporters- the reporters to be added. Must not be, nor containnull- Returns:
- this
-
executionReporters
public CombinatorialTestConsumerManagerConfiguration.Builder executionReporters(java.util.Collection<ExecutionReporter> executionReporters)
Adds all execution reporters to listen to important events during combinatorial test execution.- Parameters:
executionReporters- the reporters to be added. Must not be, nor containnull- Returns:
- this
-
argumentConverter
public CombinatorialTestConsumerManagerConfiguration.Builder argumentConverter(de.rwth.swc.coffee4j.engine.report.ArgumentConverter argumentConverter)
Adds the argument converter to convert report arguments from engine to testModel representations.- Parameters:
argumentConverter- the converter to be added. Must not benull- Returns:
- this
-
argumentConverters
public CombinatorialTestConsumerManagerConfiguration.Builder argumentConverters(de.rwth.swc.coffee4j.engine.report.ArgumentConverter... arguementConverters)
Adds the argument converters to convert report arguments from engine to testModel representations.- Parameters:
arguementConverters- the converters to be added. Must not be, nor containnull- Returns:
- this
-
argumentConverters
public CombinatorialTestConsumerManagerConfiguration.Builder argumentConverters(java.util.Collection<de.rwth.swc.coffee4j.engine.report.ArgumentConverter> argumentConverters)
Adds the argument converters to convert report arguments from engine to testModel representations.- Parameters:
argumentConverters- the converters to be added. Must not be, nor containnull- Returns:
- this
-
generator
public CombinatorialTestConsumerManagerConfiguration.Builder generator(de.rwth.swc.coffee4j.engine.generator.TestInputGroupGenerator generator)
Adds one generator for initialTestInputGroupgeneration.- Parameters:
generator- the generator to be added. Must not benull- Returns:
- this
-
generators
public CombinatorialTestConsumerManagerConfiguration.Builder generators(de.rwth.swc.coffee4j.engine.generator.TestInputGroupGenerator... generators)
Adds all generators for initialTestInputGroupgeneration.- Parameters:
generators- the generators to be added. Must not be, nor containnull- Returns:
- this
-
generators
public CombinatorialTestConsumerManagerConfiguration.Builder generators(java.util.Collection<de.rwth.swc.coffee4j.engine.generator.TestInputGroupGenerator> generators)
Adds all generators for initialTestInputGroupgeneration.- Parameters:
generators- the generators to be added. Must not be, nor containnull- Returns:
- this
-
build
public CombinatorialTestConsumerManagerConfiguration build()
Creates a new configuration based on the supplied values. ThemanagerFactory(CombinatorialTestManagerFactory)andmodelConverterFactory(ModelConverterFactory)must not benull. If they are not used, they will have the non-nulldefault values defined at the methods.- Returns:
- the new configuration
-
-