Class Seed
- java.lang.Object
-
- de.rwth.swc.coffee4j.engine.configuration.model.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, useNO_PRIORITY
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Seed.Builder
Class used to create newSeed
instances using the builder pattern.
-
Field Summary
Fields Modifier and Type Field Description static double
NO_PRIORITY
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Combination
getCombination()
SeedMode
getMode()
double
getPriority()
boolean
hasPriority()
static Seed.Builder
seed(Combination combination)
Constructs a builder instance for a seed which consists of the given combination.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.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 hasSeedMode.EXCLUSIVE
as a mode.
-
-
-
Field Detail
-
NO_PRIORITY
public static final double NO_PRIORITY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getCombination
public Combination getCombination()
-
getMode
public SeedMode getMode()
-
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 benull
- 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 benull
- 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 hasSeedMode.EXCLUSIVE
as a mode.- Parameters:
entries
- the entries of a combination as a map from parameter names to parameter raw values. Must not benull
- Returns:
- a builder to add additional information to the seed
- See Also:
seed(Map.Entry[])
-
-