Class Seed


  • public class Seed
    extends Object
    A representation of (partial) seed test cases.

    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.

    • Method Detail

      • getPriority

        public double getPriority()
      • hasPriority

        public boolean hasPriority()
      • seed

        public static Seed.Builder seed​(Combination combination)
        Constructs a builder instance for a seed which consists of the given combination.
        Parameters:
        combination - the combination of the seed. Must not be null
        Returns:
        a builder to add additional information to the seed
      • seed

        @SafeVarargs
        public static Seed.Builder seed​(Map.Entry<String,​Object>... entries)
        Constructs a builder instance for a seed which consists of a combination with the given entries.
        Parameters:
        entries - the entries of a combination as a map from parameter names to parameter raw values. Must not be null
        Returns:
        a builder to add additional information to the seed
        See Also:
        Combination.combination(Map.Entry[])
      • suspiciousSeed

        @SafeVarargs
        public static Seed.Builder suspiciousSeed​(Map.Entry<String,​Object>... entries)
        Constructs a builder instance for a seed which consists of a combination with the given entries and which has SeedMode.EXCLUSIVE as a mode.
        Parameters:
        entries - the entries of a combination as a map from parameter names to parameter raw values. Must not be null
        Returns:
        a builder to add additional information to the seed
        See Also:
        seed(Map.Entry[])