|
JET | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.utep.cs.jet.rat.TestCaseGenerator
edu.utep.cs.jet.rat.IncrementalRandomTestCaseGenerator
public class IncrementalRandomTestCaseGenerator
A class to generate test cases randomly. This class generates values of object types incrementally in that every method or constructor, selected randomly, is checked on-the-fly to ensure a successful invocation of the method or constructor, i.e., no exception and no assertion violation.
| Field Summary | |
|---|---|
protected Context |
context
The testing context. |
| Constructor Summary | |
|---|---|
IncrementalRandomTestCaseGenerator()
Constructs an object for generating test cases. |
|
| Method Summary | |
|---|---|
void |
generate()
Generates test cases. |
void |
generate(Context context)
Generates test cases under the given testing context. |
protected Denotable[] |
generateArguments()
Generates and returns test arguments to generate a new test case. |
protected Denotable |
generateReceiver()
Generates and returns a receiver to generate a new test case. |
protected TestCase |
generateTestCase()
Generates and returns a new test case. |
protected void |
reset(Context context)
Resets this object to generate test cases under the given testing context. |
Iterable<TestCase> |
testcases()
Returns an iterator that iterates over the generated test cases. |
protected ValueGenerator |
valueGenerator()
Returns the value generator. |
| Methods inherited from class edu.utep.cs.jet.rat.TestCaseGenerator |
|---|
addTestCaseGenerationListener, getInstance, notifyFailure, notifyMeaningless, notifyRedundant, notifySuccess, removeTestCaseGenerationListener |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Context context
| Constructor Detail |
|---|
public IncrementalRandomTestCaseGenerator()
| Method Detail |
|---|
protected ValueGenerator valueGenerator()
public void generate(Context context)
testcases().
generate in class TestCaseGeneratorpublic void generate()
testcases().
public Iterable<TestCase> testcases()
testcases in class TestCaseGeneratorprotected void reset(Context context)
reset in class TestCaseGeneratorprotected TestCase generateTestCase()
protected Denotable generateReceiver()
protected Denotable[] generateArguments()
|
JET | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||