1 16 package org.apache.commons.collections.iterators; 17 18 import java.util.ListIterator ; 19 20 import junit.framework.Test; 21 import junit.framework.TestSuite; 22 23 30 public class TestObjectArrayListIterator2 extends AbstractTestListIterator { 31 32 protected String [] testArray = { "One", "Two", "Three" }; 33 34 public TestObjectArrayListIterator2(String testName) { 35 super(testName); 36 } 37 38 public static Test suite() { 39 return new TestSuite(TestObjectArrayListIterator2.class); 40 } 41 42 public ListIterator makeEmptyListIterator() { 43 return new ObjectArrayListIterator(new Object [0]); 44 } 45 46 public ListIterator makeFullListIterator() { 47 return new ObjectArrayListIterator(testArray); 48 } 49 50 public ListIterator makeArrayListIterator(Object [] array) { 51 return new ObjectArrayListIterator(array); 52 } 53 54 public boolean supportsAdd() { 55 return false; 56 } 57 58 public boolean supportsRemove() { 59 return false; 60 } 61 62 } 63 | Popular Tags |