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