Class TestInputGroup
- java.lang.Object
-
- de.rwth.swc.coffee4j.algorithmic.sequential.generator.TestInputGroup
-
public class TestInputGroup extends Object
Class 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 sameFaultCharacterizationConfiguration
should 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 theFaultCharacterizationConfiguration
must not be present.- See Also:
TestInputGroupGenerator
-
-
Constructor Summary
Constructors Constructor Description TestInputGroup(Object identifier, Collection<int[]> testInputs)
Creates a new group of combinatorial test inputs without a configuration for fault characterization via aFaultCharacterizationAlgorithm
.TestInputGroup(Object identifier, 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 boolean
equals(Object o)
Optional<FaultCharacterizationConfiguration>
getFaultCharacterizationConfiguration()
Object
getIdentifier()
List<int[]>
getTestInputs()
int
hashCode()
String
toString()
-
-
-
Constructor Detail
-
TestInputGroup
public TestInputGroup(Object identifier, 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 benull
testInputs
- the test inputs in this group. In every test input all parameters should be set. Otherwise correct behaviour cannot be guaranteed. Must not benull
but may be empty- Throws:
NullPointerException
- if one of the arguments isnull
-
TestInputGroup
public TestInputGroup(Object identifier, 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 benull
testInputs
- the test inputs in this group. In every test input all parameters should be set. Otherwise correct behaviour cannot be guaranteed. Must not benull
but 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:
NullPointerException
- ifidentifier
ortestInputs
isnull
-
-
Method Detail
-
getIdentifier
public 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 List<int[]> getTestInputs()
- Returns:
- all test inputs in this group
-
getFaultCharacterizationConfiguration
public Optional<FaultCharacterizationConfiguration> getFaultCharacterizationConfiguration()
-
-