1 /* Copyright (c) 2000-2004 jMock.org2 */3 package org.jmock.core.constraint;4 5 import org.jmock.core.Constraint;6 7 8 /**9 * Is the value null?10 */11 public class IsNull implements Constraint12 {13 public boolean eval( Object o ) {14 return o == null;15 }16 17 public StringBuffer describeTo( StringBuffer buffer ) {18 return buffer.append("null");19 }20 }21 22