KickJava   Java API By Example, From Geeks To Geeks.

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


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

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