Class InputParameterModel
- java.lang.Object
-
- de.rwth.swc.coffee4j.engine.configuration.model.InputParameterModel
-
public final class InputParameterModel extends Object
An representation of a input parameter testModel for combinatorial testing. Consists of a testing strength, readable name for identification, parameter, and exclusion and error constraints. This testModel defines all important aspects of one combinatorial test.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
InputParameterModel.Builder
Realization of the builder pattern for constructing aInputParameterModel
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
List<Constraint>
getErrorConstraints()
List<Constraint>
getExclusionConstraints()
String
getName()
Map<String,List<Seed>>
getNegativeSeeds()
int
getNegativeTestingStrength()
List<Parameter>
getParameters()
List<StrengthGroup>
getPositiveMixedStrengthGroups()
List<Seed>
getPositiveSeeds()
int
getPositiveTestingStrength()
int
hashCode()
static InputParameterModel.Builder
inputParameterModel(String name)
int
size()
InputParameterModel.Builder
toBuilder()
String
toString()
-
-
-
Method Detail
-
toBuilder
public InputParameterModel.Builder toBuilder()
-
getPositiveTestingStrength
public int getPositiveTestingStrength()
- Returns:
- the positive testing strength
-
getNegativeTestingStrength
public int getNegativeTestingStrength()
- Returns:
- the negative testing strength
-
getName
public String getName()
- Returns:
- the descriptive name of the testModel
-
getParameters
public List<Parameter> getParameters()
- Returns:
- a copy of the list of all parameters of this testModel
-
getExclusionConstraints
public List<Constraint> getExclusionConstraints()
- Returns:
- a copy of the list of all exclusion constraints. Test inputs may never violate those constraints as they define combinations which are not possible testable (like testing safari on windows is not possible)
-
getErrorConstraints
public List<Constraint> getErrorConstraints()
- Returns:
- a copy of the list of all error constraints. Test inputs may violate these constraints but they define inputs on which the system under test should react in a destructive way like raising exception (like trying to parse "asfd" as a number)
-
getPositiveSeeds
public List<Seed> getPositiveSeeds()
- Returns:
- a copy of the list of all (partial) seed test cases. A test suite for this model should always include the seed test cases at least once
-
getNegativeSeeds
public Map<String,List<Seed>> getNegativeSeeds()
- Returns:
- a copy of the map of error constraint names to all (partial) seed tests cases for that constraint. A test suite for this model must always include the seed test cases at least once
-
getPositiveMixedStrengthGroups
public List<StrengthGroup> getPositiveMixedStrengthGroups()
- Returns:
- a list of all parameter strength groups which must be included in the final positive combinatorial test suite
-
size
public int size()
- Returns:
- the number of parameters
-
inputParameterModel
public static InputParameterModel.Builder inputParameterModel(String name)
-
-