float
8788899091929394959697
// collections testing framework // ------------------------------------------------------------------------ protected Object makeObject() { FloatList list = new ArrayFloatList(); for(int i=0;i<10;i++) { list.add((float)i); } return new FloatCollectionCollection(list); }
117118119120121122123124125
public void testWrapNull() { assertNull(FloatCollectionCollection.wrap(null)); } public void testWrapSerializable() { Collection collection = FloatCollectionCollection.wrap(new ArrayFloatList()); assertNotNull(collection); assertTrue(collection instanceof Serializable); }
8889909192939495969798
protected FloatIterator makeFloatIterator() { return makeFloatListIterator(); } protected FloatListIterator makeFloatListIterator() { FloatList list = new ArrayFloatList(); for(float i=0;i<10;i++) { list.add(i); } return list.listIterator(); }
8182838485868788899091
// ------------------------------------------------------------------------ protected abstract FloatList makeUnmodifiableFloatList(); protected FloatList makeFloatList() { FloatList list = new ArrayFloatList(); for(float i=0;i<10;i++) { list.add(i); } return list; }
8081828384858687888990
// framework // ------------------------------------------------------------------------ protected abstract FloatIterator makeUnmodifiableFloatIterator(); protected FloatIterator makeFloatIterator() { FloatList list = new ArrayFloatList(); for(float i=0;i<10;i++) { list.add(i); } return list.iterator(); }
87888990919293
// collections testing framework // ------------------------------------------------------------------------ protected List makeEmptyList() { return new FloatListList(new ArrayFloatList()); }
136137138139140141142143144
public void testWrapNull() { assertNull(FloatListList.wrap(null)); } public void testWrapSerializable() { List list = FloatListList.wrap(new ArrayFloatList()); assertNotNull(list); assertTrue(list instanceof Serializable); }
93949596979899
public Iterator makeFullIterator() { return FloatIteratorIterator.wrap(makeFullFloatList().iterator()); } protected FloatList makeEmptyFloatList() { return new ArrayFloatList(); }
9596979899100101
public ListIterator makeFullListIterator() { return FloatListIteratorListIterator.wrap(makeFullFloatList().listIterator()); } protected FloatList makeEmptyFloatList() { return new ArrayFloatList(); }