01: package uk.co.jezuk.mango;
02:
03: import junit.framework.*;
04:
05: public class FalseTest extends TestCase {
06: public FalseTest(String name) {
07: super (name);
08: }
09:
10: public static Test suite() {
11: return new TestSuite(FalseTest.class);
12: }
13:
14: public void test1() {
15: Predicate t = Predicates.False();
16: assertEquals(false, t.test(new Integer(7)));
17: assertEquals(false, t.test(t));
18: assertEquals(false, t.test(new String("brainfart")));
19: } // test1
20:
21: } // FalseTest
|