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