public class TupleGenerator extends Object implements ITestCaseGenerator
test cases
for a function
that use
all specified N-tuples of valid variable values.Constructor and Description |
---|
TupleGenerator()
Creates a new TupleGenerator that, by default, uses all 1-tuples of valid variable values.
|
TupleGenerator(int tupleSize)
Creates a new TupleGenerator that, by default, uses all N-tuples of valid variable values.
|
Modifier and Type | Method and Description |
---|---|
void |
addCombiner(TupleCombiner combiner)
Add to the list of
tuple combiners for this generator. |
ITestCaseGenerator |
cloneOf()
Returns a copy of this object.
|
boolean |
equals(Object object) |
List<TupleCombiner> |
getCombiners()
Returns the list of
tuple combiners for this generator. |
int |
getDefaultTupleSize()
Returns the default tuple size for variable value combinations.
|
Long |
getRandomSeed()
Returns the random number sequence seed for this generator.
|
List<ITestCaseDef> |
getTests(FunctionInputDef inputDef,
FunctionTestDef baseTests)
Returns a set of
test cases for the given function input definition. |
int |
hashCode() |
void |
setCombiners(List<TupleCombiner> combiners)
Changes the list of
tuple combiners for this generator. |
void |
setDefaultTupleSize(int tupleSize)
Changes the default tuple size for variable value combinations.
|
void |
setRandomSeed(Long seed)
Changes the random number sequence seed for this generator.
|
String |
toString() |
public TupleGenerator()
public TupleGenerator(int tupleSize)
public void setDefaultTupleSize(int tupleSize)
public int getDefaultTupleSize()
public void setCombiners(List<TupleCombiner> combiners)
tuple combiners
for this generator.public List<TupleCombiner> getCombiners()
tuple combiners
for this generator.public void addCombiner(TupleCombiner combiner)
tuple combiners
for this generator.public void setRandomSeed(Long seed)
setRandomSeed
in interface ITestCaseGenerator
public Long getRandomSeed()
getRandomSeed
in interface ITestCaseGenerator
public List<ITestCaseDef> getTests(FunctionInputDef inputDef, FunctionTestDef baseTests)
test cases
for the given function input definition.
If the given base test definition is non-null, returns a set of new test cases
that extend the base tests.getTests
in interface ITestCaseGenerator
public ITestCaseGenerator cloneOf()
cloneOf
in interface CloneableType<ITestCaseGenerator>
Copyright © 2024 The Cornutum Project. All rights reserved.