KickJava   Java API By Example, From Geeks To Geeks.

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


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

3 package test.jmock.core.constraint;
4
5 import org.jmock.core.constraint.IsLessThan;
6
7
8 public class IsLessThanTest extends AbstractConstraintsTest
9 {
10     public void testEvaluatesToTrueIfArgumentIsLessThanAComparableObject() {
11         IsLessThan c = new IsLessThan(new Integer JavaDoc(1));
12
13         assertTrue(c.eval(new Integer JavaDoc(0)));
14         assertFalse(c.eval(new Integer JavaDoc(1)));
15         assertFalse(c.eval(new Integer JavaDoc(2)));
16     }
17 }
18
Popular Tags