Enum SeedMode

    • Enum Constant Detail

      • NON_EXCLUSIVE

        public static final SeedMode NON_EXCLUSIVE
        A normal (partial) seed test case which must appear somewhere in the final combinatorial test suite.

        A normal seed is just a combination which should be tested and is no more suspicious of producing a failure than any other t-way combination which should be covered in the test suite. As a result, multiple partial seed test cases can be combined with each other into a single test case in the final combinatorial test suite if possible. For example, consider the seeds [1, 2, 3, -, -] and [1, -, 3, -, 2], where "-" means that a value is not set. Since both have either the same value at each position or one seed does not have a value where the other one has a value, they can be combined to the test case [1, 2, 3, ARBITRARY_VALUE, 2].

      • EXCLUSIVE

        public static final SeedMode EXCLUSIVE
        An exclusive (partial) seed test case which must appear somewhere in the final combinatorial test suite.

        If two seeds are both in this mode, an generation algorithm should not attempt to put both of them in one test case if that is possible.

        For example, this can be used with combinations that are likely to be failure-inducing. Since multiple failure-inducing combinations in one test case can make failure-detection harder, each failure-inducing combination should appear in one test case on its own.

        Exclusive seeds can always be combined with NON_EXCLUSIVE seeds, just not with other exclusive ones.

    • Method Detail

      • values

        public static SeedMode[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (SeedMode c : SeedMode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static SeedMode valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null