KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jmock > core > stub > VoidStub


1 /* Copyright (c) 2000-2004 jMock.org
2  */

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 JavaDoc invoke( Invocation invocation ) throws Throwable JavaDoc {
15         return null;
16     }
17
18     public StringBuffer JavaDoc describeTo( StringBuffer JavaDoc buffer ) {
19         return buffer.append("is void");
20     }
21 }
22
Popular Tags