short
9596979899100101
public ListIterator makeFullListIterator() { return ShortListIteratorListIterator.wrap(makeFullShortList().listIterator()); } protected ShortList makeEmptyShortList() { return new ArrayShortList(); }
8182838485868788899091
// ------------------------------------------------------------------------ protected abstract ShortList makeUnmodifiableShortList(); protected ShortList makeShortList() { ShortList list = new ArrayShortList(); for(short i=0;i<10;i++) { list.add(i); } return list; }
8081828384858687888990
// framework // ------------------------------------------------------------------------ protected abstract ShortIterator makeUnmodifiableShortIterator(); protected ShortIterator makeShortIterator() { ShortList list = new ArrayShortList(); for(short i=0;i<10;i++) { list.add(i); } return list.iterator(); }
8788899091929394959697
// collections testing framework // ------------------------------------------------------------------------ protected Object makeObject() { ShortList list = new ArrayShortList(); for(int i=0;i<10;i++) { list.add((short)i); } return new ShortCollectionCollection(list); }
117118119120121122123124125
public void testWrapNull() { assertNull(ShortCollectionCollection.wrap(null)); } public void testWrapSerializable() { Collection collection = ShortCollectionCollection.wrap(new ArrayShortList()); assertNotNull(collection); assertTrue(collection instanceof Serializable); }
8889909192939495969798
protected ShortIterator makeShortIterator() { return makeShortListIterator(); } protected ShortListIterator makeShortListIterator() { ShortList list = new ArrayShortList(); for(short i=0;i<10;i++) { list.add(i); } return list.listIterator(); }
93949596979899
public Iterator makeFullIterator() { return ShortIteratorIterator.wrap(makeFullShortList().iterator()); } protected ShortList makeEmptyShortList() { return new ArrayShortList(); }
87888990919293
// collections testing framework // ------------------------------------------------------------------------ protected List makeEmptyList() { return new ShortListList(new ArrayShortList()); }
136137138139140141142143144
public void testWrapNull() { assertNull(ShortListList.wrap(null)); } public void testWrapSerializable() { List list = ShortListList.wrap(new ArrayShortList()); assertNotNull(list); assertTrue(list instanceof Serializable); }