1 4 package com.mockobjects.dynamic; 5 6 9 public class ReturnStub 10 extends CallStub 11 { 12 private Object result; 13 14 public ReturnStub( Object result ) { 15 this.result = result; 16 } 17 18 public Object call(Mock mock, String methodName, Object [] args) throws Throwable { 19 return result; 20 } 21 22 public String getDescription() { 23 return "returns <" + result + ">"; 24 } 25 } 26 | Popular Tags |