| Method from org.apache.commons.collections.primitives.adapters.TestCollectionByteCollection Detail: |
protected Object makeObject() {
List list = new ArrayList();
for(int i=0;i< 10;i++) {
list.add(new Byte((byte)i));
}
return new CollectionByteCollection(list);
}
|
public static Test suite() {
return new TestSuite(TestCollectionByteCollection.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() {
ByteCollection collection = CollectionByteCollection.wrap(new AbstractList() {
public Object get(int i) { throw new IndexOutOfBoundsException(); }
public int size() { return 0; }
});
assertNotNull(collection);
assertTrue(!(collection instanceof Serializable));
}
|
public void testWrapNull() {
assertNull(CollectionByteCollection.wrap(null));
}
|
public void testWrapSerializable() {
ByteCollection collection = CollectionByteCollection.wrap(new ArrayList());
assertNotNull(collection);
assertTrue(collection instanceof Serializable);
}
|