Class PrimitiveSeed


  • public class PrimitiveSeed
    extends Object
    A representation of (partial) seed test cases build upon primitive data types.

    A (partial) seed test case is a combination which is used as a base for constructing combinatorial test suites. For example, if some combinations greater than the testing strength t are so important that they must always be tested, a seed can be given to include it in the final test suite.

    A (partial) seed test case is characterized by a given combination, the SeedMode and a priority. The priority should only be used relative to other seed priorities and should not be combined with the general combinatorial coverage criterion which must always be upheld. If a seed should have no priority, use NO_PRIORITY.

    • Constructor Detail

      • PrimitiveSeed

        public PrimitiveSeed​(int[] combination,
                             SeedMode mode,
                             double priority)
        Construct a new instance with the given parameters.
        Parameters:
        combination - the (partial) seed test case. Must not be null
        mode - the mode of the seed. If null, the default of SeedMode.NON_EXCLUSIVE is used
        priority - defines the importance of this seed relative to other seeds. If a combination is of no particular importance, use NO_PRIORITY.
    • Method Detail

      • getCombination

        public int[] getCombination()
      • getPriority

        public double getPriority()
      • hasPriority

        public boolean hasPriority()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object