mirror of
https://github.com/apache/commons-collections.git
synced 2025-02-06 10:09:16 +00:00
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:
parent
9976cbe48d
commit
6cfa5daebc
@ -16,6 +16,10 @@
|
|||||||
*/
|
*/
|
||||||
package org.apache.commons.collections.splitmap;
|
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.math.BigInteger;
|
||||||
import java.util.HashMap;
|
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());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user