KickJava   Java API By Example, From Geeks To Geeks.

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


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

3 package org.jmock.core.matcher;
4
5 import org.jmock.core.Invocation;
6 import org.jmock.core.InvocationMatcher;
7
8
9 public abstract class StatelessInvocationMatcher implements InvocationMatcher
10 {
11     public void invoked( Invocation invocation ) {
12         // Do nothing because state cannot change
13
}
14
15     public void verify() {
16         // Nothing to verify because state cannot change
17
}
18
19     public boolean hasDescription() {
20         return true;
21     }
22 }
Popular Tags