|
|||||||||||||||||||
30 day Evaluation Version distributed via the Maven Jar Repository. Clover is not free. You have 30 days to evaluate it. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover | |||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
VoidReturnValues.java | - | 0% | 0% | 0% |
|
1 |
/* Copyright (c) 2000-2003, jMock.org. See bundled LICENSE.txt */
|
|
2 |
package org.jmock.expectation;
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
/**
|
|
7 |
* Sequence of void values as required by MockMaker
|
|
8 |
* This is a generic class that should have been introduced to the mockobjects code stream instead of
|
|
9 |
* being separately included in org.mockobjects.
|
|
10 |
* It is possibly similar to a ReturnObjectList?
|
|
11 |
*/
|
|
12 |
public class VoidReturnValues extends ReturnValues { |
|
13 |
|
|
14 | 0 |
public VoidReturnValues() {
|
15 |
} |
|
16 |
|
|
17 | 0 |
public VoidReturnValues(String name, boolean keepUsingLastReturnValue) { |
18 | 0 |
super(name, keepUsingLastReturnValue);
|
19 |
} |
|
20 |
|
|
21 | 0 |
public VoidReturnValues(boolean keepUsingLastReturnValue) { |
22 | 0 |
super(keepUsingLastReturnValue);
|
23 |
} |
|
24 |
|
|
25 | 0 |
public Object getNext() {
|
26 | 0 |
return myContents.isEmpty() ? null : pop(); |
27 |
} |
|
28 |
} |
|
29 |
|
|