Class StrengthGroup


  • public class StrengthGroup
    extends Object
    Represents a group of parameters which should be tested at a given higher strength than the rest of the parameters in the model.

    This concept is in general called mixed-strength combinatorial testing where there is a defined default testing strength and a number of parameter groups which deviate from this default strength. Such a mechanism is useful to model multiple subsystems in a combinatorial test without increasing the testing strength between the subsystems unnecessarily. Additionally, parameters which are prone to appear in failure-causing combinations can be tested at a higher strength to increase confidence.

    • Method Detail

      • mixedStrengthGroup

        public static StrengthGroup.Builder mixedStrengthGroup​(String... parameterNames)
        Creates a new StrengthGroup.Builder for a StrengthGroup with the parameters corresponding to the given names.
        Parameters:
        parameterNames - the unique names of the parameters. Must not be null
        Returns:
        the builder instance for the given parameter names
      • mixedStrengthGroup

        public static StrengthGroup.Builder mixedStrengthGroup​(Collection<String> parameterNames)
        Creates a new StrengthGroup.Builder for a StrengthGroup with the parameters corresponding to the given names.
        Parameters:
        parameterNames - the unique names of the parameters. Must not be null
        Returns:
        the builder instance for the given parameter names
      • getStrength

        public int getStrength()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object