JML

org.jmlspecs.jmlunit.strategies
Class ImmutableObjectAbstractStrategy

java.lang.Object
  extended byorg.jmlspecs.jmlunit.strategies.CachedObjectAbstractStrategy
      extended byorg.jmlspecs.jmlunit.strategies.ImmutableObjectAbstractStrategy
All Implemented Interfaces:
StrategyType
Direct Known Subclasses:
ImmutableObjectAbstractStrategyTest.ImmutableObjectAbstractStrategyTest$1, ImmutableObjectAbstractStrategyTest.SingletonIOAS, ImmutableObjectAbstractStrategyTest.SmallestIOAS, ImmutableObjectExtensibleStrategyDecorator.ImmutableObjectExtensibleStrategyDecorator$1, JMLChar_JML_TestData.JMLChar_JML_TestData$1, JMLChar_JML_TestData.JMLChar_JML_TestData$2, JMLCollectionUnextensibleStrategy, JMLDataGroup_JML_TestData.JMLDataGroup_JML_TestData$2, JMLFloat_JML_TestData.JMLFloat_JML_TestData$1, JMLFloat_JML_TestData.JMLFloat_JML_TestData$3, JMLFloat_JML_TestData.JMLFloat_JML_TestData$4, JMLInfiniteInteger_JML_TestData.JMLInfiniteInteger_JML_TestData$1, JMLInfiniteInteger_JML_TestData.JMLInfiniteInteger_JML_TestData$2, JMLInteger_JML_TestData.JMLInteger_JML_TestData$2, JMLInteger_JML_TestData.JMLInteger_JML_TestData$3, JMLListValueNode_JML_TestData.JMLListValueNode_JML_TestData$1, JMLListValueNode_JML_TestData.JMLListValueNode_JML_TestData$2, JMLObjectToObjectRelation_JML_TestData.JMLObjectToObjectRelation_JML_TestData$1, JMLObjectToObjectRelation_JML_TestData.JMLObjectToObjectRelation_JML_TestData$3, JMLObjectToObjectRelation_JML_TestData.JMLObjectToObjectRelation_JML_TestData$4, JMLString_JML_TestData.JMLString_JML_TestData$1, JMLValueSet_JML_TestData.JMLValueSet_JML_TestData$1, JMLValueToValueMap_JML_TestData.JMLValueToValueMap_JML_TestData$1, JMLValueToValueMap_JML_TestData.JMLValueToValueMap_JML_TestData$2, JMLValueToValueMap_JML_TestData.JMLValueToValueMap_JML_TestData$3, JMLValueToValueMap_JML_TestData.JMLValueToValueMap_JML_TestData$5, JMLValueToValueMap_JML_TestData.JMLValueToValueMap_JML_TestData$6, NaturalNumber_JML_TestData.NaturalNumber_JML_TestData$1, NaturalNumber_JML_TestData.NaturalNumber_JML_TestData$2, NaturalNumber_JML_TestData.NaturalNumber_JML_TestData$3, StringOfObject_JML_TestData.StringOfObject_JML_TestData$1, StringStrategy

public abstract class ImmutableObjectAbstractStrategy
extends CachedObjectAbstractStrategy

A strategy for producing test data of reference types with immutable objects, such as String. It provides null as the only piece of data, by default. To provide more test data, override the addData() method.

Author:
Gary T. Leavens
See Also:
CachedObjectAbstractStrategy

Field Summary
 
Fields inherited from class org.jmlspecs.jmlunit.strategies.CachedObjectAbstractStrategy
 
Constructor Summary
ImmutableObjectAbstractStrategy()
           
 
Method Summary
protected  IndefiniteIterator iteratorFor(Object[] data)
           
 
Methods inherited from class org.jmlspecs.jmlunit.strategies.CachedObjectAbstractStrategy
addData, defaultData, getData, iterator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImmutableObjectAbstractStrategy

public ImmutableObjectAbstractStrategy()
Method Detail

iteratorFor

protected IndefiniteIterator iteratorFor(Object[] data)
Description copied from class: CachedObjectAbstractStrategy
Return an appropriate iterator for the data.


JML

JML is Copyright (C) 1998-2002 by Iowa State University 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. This release depends on code from the MultiJava project and is based in part on the Kopi project Copyright (C) 1990-99 DMS Decision Management Systems Ges.m.b.H.