1 /* Copyright (c) 2000-2003, jMock.org. See bundled LICENSE.txt */
2 package org.jmock.stub;
3
4 import org.jmock.Stub;
5 import org.jmock.dynamic.Invocation;
6
7 public class ReturnStub
8 extends CallStub
9 implements Stub {
10 private Object result;
11
12 public ReturnStub(Object result) {
13 this.result = result;
14 }
15
16 public Object invoke(Invocation invocation) throws Throwable {
17 return result;
18 }
19
20 public String getDescription() {
21 return "returns <" + result + ">";
22 }
23 }
This page was automatically generated by Maven