KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > uk > co > jezuk > mango > FalseTest


1 package uk.co.jezuk.mango;
2
3 import junit.framework.*;
4
5 public class FalseTest extends TestCase
6 {
7   public FalseTest(String JavaDoc name) { super(name); }
8   public static Test suite() { return new TestSuite(FalseTest.class); }
9
10   public void test1()
11   {
12     Predicate t = Predicates.False();
13     assertEquals(false, t.test(new Integer JavaDoc(7)));
14     assertEquals(false, t.test(t));
15     assertEquals(false, t.test(new String JavaDoc("brainfart")));
16   } // test1
17

18 } // FalseTest
19
Popular Tags