KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > jmock > core > constraint > IsNullTest


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

3 package test.jmock.core.constraint;
4
5 import org.jmock.core.constraint.IsNull;
6
7
8 public class IsNullTest extends AbstractConstraintsTest
9 {
10     public void testEvaluatesToTrueIfArgumentIsNull() {
11         IsNull isNull = new IsNull();
12
13         assertTrue(isNull.eval(null));
14         assertFalse(isNull.eval(ANY_NON_NULL_ARGUMENT));
15     }
16 }
17
Popular Tags