KickJava   Java API By Example, From Geeks To Geeks.

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


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

3 package test.jmock.core.constraint;
4
5 import org.jmock.core.constraint.IsAnything;
6
7
8 public class IsAnythingTest extends AbstractConstraintsTest
9 {
10     public void testAlwaysEvaluatesToTrue() {
11         IsAnything isAnything = new IsAnything();
12
13         assertTrue(isAnything.eval(null));
14         assertTrue(isAnything.eval(new Object JavaDoc()));
15     }
16
17
18 }
19
Popular Tags