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