Class CombinatorialTestConfiguration


  • public final class CombinatorialTestConfiguration
    extends java.lang.Object
    All configuration needed for an CombinatorialTestManager to generate test inputs for a given testModel.
    • Constructor Detail

      • CombinatorialTestConfiguration

        public CombinatorialTestConfiguration​(FaultCharacterizationAlgorithmFactory faultCharacterizationAlgorithmFactory,
                                              ConflictDetectionConfiguration conflictDetectionConfiguration,
                                              java.util.Collection<TestInputGroupGenerator> generators,
                                              GenerationReporter generationReporter)
        Creates a new configuration with the given arguments.
        Parameters:
        faultCharacterizationAlgorithmFactory - the factory creating fault characterization to be used for a combinatorialtest. Can be null
        generators - All generators which should be used for test input generation. This cannot be null, but an empty collection is allowed
        generationReporter - the generation reporter for notification of important events in a combinatorial test. Can be null
    • Method Detail

      • getFaultCharacterizationAlgorithmFactory

        public java.util.Optional<FaultCharacterizationAlgorithmFactory> getFaultCharacterizationAlgorithmFactory()
        Returns:
        an Optional if a factory was given in the constructor, otherwise an empty optional
      • getGenerators

        public java.util.List<TestInputGroupGenerator> getGenerators()
        Returns:
        an unmodifiable list of all generates which should be used
      • getGenerationReporter

        public java.util.Optional<GenerationReporter> getGenerationReporter()
        Returns:
        an Optional containing a reporter if one was given in the constructor, or an empty one otherwise
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object