commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ki...@apache.org
Subject svn commit: r1537908 - /commons/proper/functor/trunk/core/src/test/java/org/apache/commons/functor/BaseFunctorTest.java
Date Fri, 01 Nov 2013 12:24:04 GMT
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());



Mime
View raw message