You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ki...@apache.org on 2013/11/01 13:24:04 UTC

svn commit: r1537908 - /commons/proper/functor/trunk/core/src/test/java/org/apache/commons/functor/BaseFunctorTest.java

Author: kinow
Date: Fri Nov  1 12:24:04 2013
New Revision: 1537908

URL: http://svn.apache.org/r1537908
Log:
FUNCTOR-29 Remove serializable test from base test class

Modified:
    commons/proper/functor/trunk/core/src/test/java/org/apache/commons/functor/BaseFunctorTest.java

Modified: commons/proper/functor/trunk/core/src/test/java/org/apache/commons/functor/BaseFunctorTest.java
URL: http://svn.apache.org/viewvc/commons/proper/functor/trunk/core/src/test/java/org/apache/commons/functor/BaseFunctorTest.java?rev=1537908&r1=1537907&r2=1537908&view=diff
==============================================================================
--- commons/proper/functor/trunk/core/src/test/java/org/apache/commons/functor/BaseFunctorTest.java (original)
+++ commons/proper/functor/trunk/core/src/test/java/org/apache/commons/functor/BaseFunctorTest.java Fri Nov  1 12:24:04 2013
@@ -60,23 +60,6 @@ public abstract class BaseFunctorTest {
     }
 
     @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());