KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jmock > core > matcher > AnyArgumentsMatcher


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

3 package org.jmock.core.matcher;
4
5 import org.jmock.core.Invocation;
6
7
8 public class AnyArgumentsMatcher extends StatelessInvocationMatcher
9 {
10
11     public static final AnyArgumentsMatcher INSTANCE = new AnyArgumentsMatcher();
12
13     public boolean matches( Invocation invocation ) {
14         return true;
15     }
16
17     public StringBuffer JavaDoc describeTo( StringBuffer JavaDoc buffer ) {
18         return buffer.append("(any arguments)");
19     }
20 }
Popular Tags