KickJava   Java API By Example, From Geeks To Geeks.

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


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 AlwaysFalse implements Constraint
9 {
10     public static AlwaysFalse INSTANCE = new AlwaysFalse();
11
12     public boolean eval( Object JavaDoc o ) {
13         return false;
14     }
15
16     public StringBuffer JavaDoc describeTo( StringBuffer JavaDoc buffer ) {
17         return buffer.append("always false");
18     }
19 }
20
Popular Tags