FUNCTOR-29 Remove serializable test from base test class
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/functor/trunk@1537908 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/core/src/test/java/org/apache/commons/functor/BaseFunctorTest.java b/core/src/test/java/org/apache/commons/functor/BaseFunctorTest.java
index e7df6d7..51b8082 100644
--- a/core/src/test/java/org/apache/commons/functor/BaseFunctorTest.java
+++ b/core/src/test/java/org/apache/commons/functor/BaseFunctorTest.java
@@ -60,23 +60,6 @@
}
@Test
- public final void testSerializeDeserializeThenCompare() throws Exception {
- Object obj = makeFunctor();
- if (obj instanceof Serializable) {
- ByteArrayOutputStream buffer = new ByteArrayOutputStream();
- ObjectOutputStream out = new ObjectOutputStream(buffer);
- out.writeObject(obj);
- out.close();
-
- ObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(buffer.toByteArray()));
- Object dest = in.readObject();
- in.close();
- assertEquals("obj != deserialize(serialize(obj))",obj,dest);
- assertEquals("obj.hash != deserialize(serialize(obj.hash))",obj.hashCode(),dest.hashCode());
- }
- }
-
- @Test
public void testToStringIsOverridden() throws Exception {
Object obj = makeFunctor();
assertNotNull("toString should never return null",obj.toString());