|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jmlspecs.jmlunit.strategies.ShortAbstractStrategy
org.jmlspecs.jmlunit.strategies.ShortExtensibleStrategy
Common code for extensible strategies for providing test data of type short.
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 short[] |
data
The data to return in the iterations |
| Constructor Summary | |
ShortExtensibleStrategy()
|
|
| Method Summary | |
protected short[] |
addData()
Subclasses can override this to make simple extensions to the data used. |
protected abstract short[] |
defaultData()
Create and return the default data for the iterations. |
protected short[] |
getData()
Create and return the data for the iterations. |
ShortIterator |
shortIterator()
Compute a fresh ShortIterator, which can be used to provide test data of type short. |
| Methods inherited from class org.jmlspecs.jmlunit.strategies.ShortAbstractStrategy |
iterator |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private short[] data
| Constructor Detail |
public ShortExtensibleStrategy()
| Method Detail |
public ShortIterator shortIterator()
ShortStrategyType
protected short[] getData()
protected abstract short[] defaultData()
protected short[] addData()
|
JML | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||