1 19 20 package org.netbeans.modules.java.source.util; 21 import java.util.ArrayList ; 22 import java.util.List ; 23 import junit.framework.*; 24 25 29 public class EmptyIteratorTest extends IteratorTest { 30 31 public EmptyIteratorTest(String testName) { 32 super(testName); 33 } 34 35 protected void setUp() throws Exception { 36 } 37 38 protected void tearDown() throws Exception { 39 } 40 41 public static Test suite() { 42 TestSuite suite = new TestSuite(EmptyIteratorTest.class); 43 return suite; 44 } 45 46 48 protected Iterable <IteratorDescription> createDescriptions() { 49 50 List <IteratorDescription> descs = new ArrayList <IteratorDescription>(); 51 52 List <Integer > el = new ArrayList <Integer >(); 53 54 descs.add( new IteratorDescription( "SimpleEmptyIterator", 55 Iterators.<Integer >empty(), 56 el.iterator(), 57 el.size(), 58 false ) ); 59 60 return descs; 61 } 62 63 65 } 66 | Popular Tags |