Add (disabled) test for Collections-363

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/collections/trunk@1023454 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2010-10-17 11:02:15 +00:00
parent 9976cbe48d
commit 6cfa5daebc
1 changed files with 20 additions and 0 deletions

View File

@ -16,6 +16,10 @@
*/
package org.apache.commons.collections.splitmap;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.math.BigInteger;
import java.util.HashMap;
@ -130,4 +134,20 @@ public class TestTransformedMap extends BulkTest {
}
}
public void TODOtestCollections363() throws Exception {
TransformedMap<String, String, String, String> map = TransformedMap.decorate(
new HashMap<String, String>(),
NOPTransformer.<String> getInstance(),
NOPTransformer.<String> getInstance());
ByteArrayOutputStream bytes = new ByteArrayOutputStream();
ObjectOutputStream out = new ObjectOutputStream(bytes);
out.writeObject(map);
out.close();
ObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(bytes.toByteArray()));
Object readObject = in.readObject();
in.close();
assertEquals("deserializing class: " + map.getClass().getName(), map.getClass(), readObject
.getClass());
}
}