Class 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 same FaultCharacterizationConfiguration 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 the FaultCharacterizationConfiguration must not be present.
    See Also:
    TestInputGroupGenerator
    • 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 a FaultCharacterizationAlgorithm.
        Parameters:
        identifier - a name which can be display to describe the test input group. Should be short and descriptive. Must not be null
        testInputs - the test inputs in this group. In every test input all parameters should be set. Otherwise correct behaviour cannot be guaranteed. Must not be null but may be empty
        Throws:
        NullPointerException - if one of the arguments is null
      • 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 be null
        testInputs - the test inputs in this group. In every test input all parameters should be set. Otherwise correct behaviour cannot be guaranteed. Must not be null but may be empty
        faultCharacterizationConfiguration - the configuration for using fault characterization on the test inputs after execution. If no fault characterization should be used this can be null.
        Throws:
        NullPointerException - if identifier or testInputs is null
    • 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object