JET

edu.utep.cs.et.rat
Class IncrementalRandomTestCaseGenerator

java.lang.Object
  extended by edu.utep.cs.et.rat.TestCaseGenerator
      extended by edu.utep.cs.et.rat.RandomTestCaseGenerator
          extended by edu.utep.cs.et.rat.IncrementalRandomTestCaseGenerator

 class IncrementalRandomTestCaseGenerator
extends RandomTestCaseGenerator

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.

Version:
$Revision: 1.4 $
Author:
Yoonsik Cheon

Field Summary
private static ValueGenerator valueGenerator
          A reusable value generator to create values of various types.
 
Constructor Summary
IncrementalRandomTestCaseGenerator()
          Constructs an object for generating test cases.
 
Method Summary
protected  ValueGenerator valueGenerator()
          Returns the value generator.
 
Methods inherited from class edu.utep.cs.et.rat.RandomTestCaseGenerator
generate, generate, reset, testcases
 
Methods inherited from class edu.utep.cs.et.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

valueGenerator

private static final ValueGenerator valueGenerator
A reusable value generator to create values of various types.

Constructor Detail

IncrementalRandomTestCaseGenerator

public IncrementalRandomTestCaseGenerator()
Constructs an object for generating test cases.

Method Detail

valueGenerator

protected ValueGenerator valueGenerator()
Returns the value generator. This method is overridden here to return an incremental value generator.

Overrides:
valueGenerator in class RandomTestCaseGenerator

JET

JET is Copyright (C) 2005-2007 by The University of Texas at El Paso and is distributed under the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.