Package org.spockframework.mock.response
Class IterableResponseGenerator
java.lang.Object
org.spockframework.mock.response.IterableResponseGenerator
- All Implemented Interfaces:
IChainableResponseGenerator
,IResponseGenerator
Generates result values from an iterable object. If the iterator has no more
values left, the previous value is returned.
- Author:
- Peter Niederwieser
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
IterableResponseGenerator
-
-
Method Details
-
isAtEndOfCycle
public boolean isAtEndOfCycle()- Specified by:
isAtEndOfCycle
in interfaceIChainableResponseGenerator
-
respond
- Specified by:
respond
in interfaceIResponseGenerator
-