public final class InputParameterModel extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
InputParameterModel.Builder
Realization of the builder pattern for constructing a
InputParameterModel. |
| Constructor and Description |
|---|
InputParameterModel(int strength,
String name,
List<Parameter> parameters)
Creates a new model with no constraints.
|
InputParameterModel(int strength,
String name,
List<Parameter> parameters,
Collection<Constraint> forbiddenConstraints,
Collection<Constraint> errorConstraints)
Creates a new model with all given configuration arguments.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
List<Constraint> |
getErrorConstraints() |
List<Constraint> |
getForbiddenConstraints() |
String |
getName() |
List<Parameter> |
getParameters() |
int |
getStrength() |
int |
hashCode() |
static InputParameterModel.Builder |
inputParameterModel(String name) |
int |
size() |
String |
toString() |
public InputParameterModel(int strength,
String name,
List<Parameter> parameters)
strength - the testing strength. Must be at least one and at most the number of parametersname - the name of the model. Should be human readable. Must not be nullparameters - all parameters of the model. Must not be, nor contain null and must not be empty.
Must not contain parameters with duplicate namespublic InputParameterModel(int strength,
String name,
List<Parameter> parameters,
Collection<Constraint> forbiddenConstraints,
Collection<Constraint> errorConstraints)
strength - the testing strength. Must be at least one and at most the number of parametersname - the name of the model. Should be human readable. Must not be nullparameters - all parameters of the model. Must not be, nor contain null and must not be empty.forbiddenConstraints - all constraints which may never be violated as test inputs won't work then
May not be, nor contain nullerrorConstraints - all constraints which may be violated but will cause the system to throw an exception.
* All in all describes input which should not be allowed.
May not be, nor contain nullpublic int getStrength()
public String getName()
public List<Parameter> getParameters()
public List<Constraint> getForbiddenConstraints()
public List<Constraint> getErrorConstraints()
public int size()
public static InputParameterModel.Builder inputParameterModel(String name)
Copyright © 2019. All rights reserved.