KickJava   Java API By Example, From Geeks To Geeks.

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


1 package uk.co.jezuk.mango;
2
3 import junit.framework.*;
4
5 public class NullIteratorTest extends TestCase
6 {
7   public NullIteratorTest(String JavaDoc name) { super(name); }
8   public static Test suite() { return new TestSuite(NullIteratorTest.class); }
9
10   public void test1()
11   {
12     java.util.Iterator JavaDoc i = Iterators.NullIterator();
13     assertEquals(false, i.hasNext());
14   } // test1
15
} // NullIteratorTest
16
Popular Tags