Class TestInputGroup
- java.lang.Object
-
- de.rwth.swc.coffee4j.engine.generator.TestInputGroup
-
public class TestInputGroup extends java.lang.ObjectClass which groups multiple test inputs for combinatorial testing together. For example, this can be used to differentiate between positive and negative testing. Tests with the sameFaultCharacterizationConfigurationshould always be in the same test group as this makes applying the fault characterization process less time consuming. If fault characterization should not be used/can not be used for a group of test inputs theFaultCharacterizationConfigurationmust not be present.- See Also:
TestInputGroupGenerator
-
-
Constructor Summary
Constructors Constructor Description TestInputGroup(java.lang.Object identifier, java.util.Collection<int[]> testInputs)Creates a new group of combinatorial test inputs without a configuration for fault characterization via aFaultCharacterizationAlgorithm.TestInputGroup(java.lang.Object identifier, java.util.Collection<int[]> testInputs, FaultCharacterizationConfiguration faultCharacterizationConfiguration)Creates a new group of combinatorial test inputs.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.util.Optional<FaultCharacterizationConfiguration>getFaultCharacterizationConfiguration()java.lang.ObjectgetIdentifier()java.util.List<int[]>getTestInputs()inthashCode()java.lang.StringtoString()
-
-
-
Constructor Detail
-
TestInputGroup
public TestInputGroup(java.lang.Object identifier, java.util.Collection<int[]> testInputs)Creates a new group of combinatorial test inputs without a configuration for fault characterization via aFaultCharacterizationAlgorithm.- Parameters:
identifier- a name which can be display to describe the test input group. Should be short and descriptive. Must not benulltestInputs- the test inputs in this group. In every test input all parameters should be set. Otherwise correct behaviour cannot be guaranteed. Must not benullbut may be empty- Throws:
java.lang.NullPointerException- if one of the arguments isnull
-
TestInputGroup
public TestInputGroup(java.lang.Object identifier, java.util.Collection<int[]> testInputs, FaultCharacterizationConfiguration faultCharacterizationConfiguration)Creates a new group of combinatorial test inputs.- Parameters:
identifier- a name which can be display to describe the test input group. Should be short and descriptive. Must not benulltestInputs- the test inputs in this group. In every test input all parameters should be set. Otherwise correct behaviour cannot be guaranteed. Must not benullbut may be emptyfaultCharacterizationConfiguration- the configuration for using fault characterization on the test inputs after execution. If no fault characterization should be used this can benull.- Throws:
java.lang.NullPointerException- ifidentifierortestInputsisnull
-
-
Method Detail
-
getIdentifier
public java.lang.Object getIdentifier()
- Returns:
- a short descriptive name for the test inputs in this group which can be display to a user of the framework
-
getTestInputs
public java.util.List<int[]> getTestInputs()
- Returns:
- all test inputs in this group
-
getFaultCharacterizationConfiguration
public java.util.Optional<FaultCharacterizationConfiguration> getFaultCharacterizationConfiguration()
- Returns:
- an empty
Optionalif no fault characterization should be used for this group or anOptionalwith a configuration if it can be used
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-