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