Class CombinatorialTestConsumerManagerConfiguration.Builder

  • Enclosing class:
    CombinatorialTestConsumerManagerConfiguration

    public static final class CombinatorialTestConsumerManagerConfiguration.Builder
    extends java.lang.Object
    The realization of the builder pattern for a quick and readable construction of a new configuration.
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • managerFactory

        public CombinatorialTestConsumerManagerConfiguration.Builder managerFactory​(CombinatorialTestManagerFactory managerFactory)
        Sets which factory shall be used to create new CombinatorialTestManager instances. The default creates new ones using a CachingDelegatingCombinatorialTestManager with a HashMapTestResultCache wrapped around a BasicCombinatorialTestManager.
        Parameters:
        managerFactory - the factory for creating new managers. Must not be null when build() 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 new FaultCharacterizationAlgorithm instances during combinatorial testing. The default value is null, which means no fault characterization will be used.
        Parameters:
        characterizationAlgorithmFactory - the factory for creating new converters. Can be null when calling build() to indicate that no fault characterization is used
        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 contain null
        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 be null
        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 contain null
        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 contain null
        Returns:
        this
      • generator

        public CombinatorialTestConsumerManagerConfiguration.Builder generator​(de.rwth.swc.coffee4j.engine.generator.TestInputGroupGenerator generator)
        Adds one generator for initial TestInputGroup generation.
        Parameters:
        generator - the generator to be added. Must not be null
        Returns:
        this
      • generators

        public CombinatorialTestConsumerManagerConfiguration.Builder generators​(de.rwth.swc.coffee4j.engine.generator.TestInputGroupGenerator... generators)
        Adds all generators for initial TestInputGroup generation.
        Parameters:
        generators - the generators to be added. Must not be, nor contain null
        Returns:
        this
      • generators

        public CombinatorialTestConsumerManagerConfiguration.Builder generators​(java.util.Collection<de.rwth.swc.coffee4j.engine.generator.TestInputGroupGenerator> generators)
        Adds all generators for initial TestInputGroup generation.
        Parameters:
        generators - the generators to be added. Must not be, nor contain null
        Returns:
        this