1 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 o ) { 13 return true; 14 } 15 16 public StringBuffer describeTo( StringBuffer buffer ) { 17 return buffer.append("always true"); 18 } 19 } 20 | Popular Tags |