1 3 package org.jmock.core.stub; 4 5 import org.jmock.core.Invocation; 6 import org.jmock.core.Stub; 7 8 9 public class VoidStub 10 implements Stub 11 { 12 public static final VoidStub INSTANCE = new VoidStub(); 13 14 public Object invoke( Invocation invocation ) throws Throwable { 15 return null; 16 } 17 18 public StringBuffer describeTo( StringBuffer buffer ) { 19 return buffer.append("is void"); 20 } 21 } 22 | Popular Tags |