|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jmlspecs.jmlunit.strategies.IntAbstractStrategy
org.jmlspecs.jmlunit.strategies.IntExtensibleStrategy
Common code for extensible strategies for providing test data of type int.
This type provides an extension mechanism that is easier to use than a composite, wherein subclasses of subclasses can override the addData() method to provide additional data for testing.
| Field Summary | |
private int[] |
data
The data to return in the iterations |
| Constructor Summary | |
IntExtensibleStrategy()
|
|
| Method Summary | |
protected int[] |
addData()
Subclasses can override this to make simple extensions to the data used. |
protected abstract int[] |
defaultData()
Create and return the default data for the iterations. |
protected int[] |
getData()
Create and return the data for the iterations. |
IntIterator |
intIterator()
Compute a fresh IntIterator, which can be used to provide test data of type int. |
| Methods inherited from class org.jmlspecs.jmlunit.strategies.IntAbstractStrategy |
iterator |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private int[] data
| Constructor Detail |
public IntExtensibleStrategy()
| Method Detail |
public IntIterator intIterator()
IntStrategyType
protected int[] getData()
protected abstract int[] defaultData()
protected int[] addData()
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||