Class StrengthGroup
- java.lang.Object
-
- de.rwth.swc.coffee4j.engine.configuration.model.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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StrengthGroup.Builder
Class which realizes the builder pattern for constructing a newStrengthGroup
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object object)
Set<Parameter>
getParameters()
int
getStrength()
int
hashCode()
static StrengthGroup.Builder
mixedStrengthGroup(String... parameterNames)
Creates a newStrengthGroup.Builder
for aStrengthGroup
with the parameters corresponding to the given names.static StrengthGroup.Builder
mixedStrengthGroup(Collection<String> parameterNames)
Creates a newStrengthGroup.Builder
for aStrengthGroup
with the parameters corresponding to the given names.String
toString()
-
-
-
Method Detail
-
mixedStrengthGroup
public static StrengthGroup.Builder mixedStrengthGroup(String... parameterNames)
Creates a newStrengthGroup.Builder
for aStrengthGroup
with the parameters corresponding to the given names.- Parameters:
parameterNames
- the unique names of the parameters. Must not benull
- Returns:
- the builder instance for the given parameter names
-
mixedStrengthGroup
public static StrengthGroup.Builder mixedStrengthGroup(Collection<String> parameterNames)
Creates a newStrengthGroup.Builder
for aStrengthGroup
with the parameters corresponding to the given names.- Parameters:
parameterNames
- the unique names of the parameters. Must not benull
- Returns:
- the builder instance for the given parameter names
-
getStrength
public int getStrength()
-
-