org.jmock.expectation

Class VoidReturnValues


public class VoidReturnValues
extends ReturnValues

Sequence of void values as required by MockMaker This is a generic class that should have been introduced to the mockobjects code stream instead of being separately included in org.mockobjects. It is possibly similar to a ReturnObjectList?

Field Summary

Fields inherited from class org.jmock.expectation.ReturnValues

myContents

Constructor Summary

VoidReturnValues(String name, boolean keepUsingLastReturnValue)
VoidReturnValues(boolean keepUsingLastReturnValue)

Method Summary

Object
getNext()

Methods inherited from class org.jmock.expectation.ReturnValues

add, addAll, getNext, isEmpty, pop

Constructor Details

VoidReturnValues

public VoidReturnValues(String name,
                        boolean keepUsingLastReturnValue)

VoidReturnValues

public VoidReturnValues(boolean keepUsingLastReturnValue)

Method Details

getNext

public Object getNext()
Overrides:
getNext in interface ReturnValues