| Method from org.apache.commons.collections.primitives.adapters.TestShortCollectionCollection Detail: |
protected Object makeObject() {
ShortList list = new ArrayShortList();
for(int i=0;i< 10;i++) {
list.add((short)i);
}
return new ShortCollectionCollection(list);
}
|
public static Test suite() {
return new TestSuite(TestShortCollectionCollection.class);
}
|
public void testCanonicalEmptyCollectionExists() {
// XXX FIX ME XXX
// need to add a serialized form to cvs
}
|
public void testCanonicalFullCollectionExists() {
// XXX FIX ME XXX
// need to add a serialized form to cvs
}
|
public void testSerializeDeserializeThenCompare() {
// Collection.equal contract doesn't work that way
}
|
public void testWrapNonSerializable() {
Collection collection = ShortCollectionCollection.wrap(new RandomAccessShortList() {
public short get(int i) { throw new IndexOutOfBoundsException(); }
public int size() { return 0; }
});
assertNotNull(collection);
assertTrue(!(collection instanceof Serializable));
}
|
public void testWrapNull() {
assertNull(ShortCollectionCollection.wrap(null));
}
|
public void testWrapSerializable() {
Collection collection = ShortCollectionCollection.wrap(new ArrayShortList());
assertNotNull(collection);
assertTrue(collection instanceof Serializable);
}
|