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