org.spockframework.mock
Class IterableResultGenerator

java.lang.Object
  extended by org.spockframework.mock.IterableResultGenerator
All Implemented Interfaces:
IResultGenerator

public class IterableResultGenerator
extends java.lang.Object
implements IResultGenerator

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
IterableResultGenerator(java.lang.Object iterable)
           
 
Method Summary
 java.lang.Object generate(IMockInvocation invocation)
           
 boolean isExhausted()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IterableResultGenerator

public IterableResultGenerator(java.lang.Object iterable)
Method Detail

isExhausted

public boolean isExhausted()
Specified by:
isExhausted in interface IResultGenerator

generate

public java.lang.Object generate(IMockInvocation invocation)
Specified by:
generate in interface IResultGenerator


Copyright © 2013. All rights reserved