KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > jmock > core > testsupport > AlwaysTrue


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

3 package test.jmock.core.testsupport;
4
5 import org.jmock.core.Constraint;
6
7
8 public class AlwaysTrue implements Constraint
9 {
10     public static AlwaysTrue INSTANCE = new AlwaysTrue();
11
12     public boolean eval( Object JavaDoc o ) {
13         return true;
14     }
15
16     public StringBuffer JavaDoc describeTo( StringBuffer JavaDoc buffer ) {
17         return buffer.append("always true");
18     }
19 }
20
Popular Tags