harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r414750 - /incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/support/common/java/org/apache/harmony/security/tests/support/SerializationTest.java
Date Fri, 16 Jun 2006 06:39:03 GMT
Author: smishura
Date: Thu Jun 15 23:39:02 2006
New Revision: 414750

URL: http://svn.apache.org/viewvc?rev=414750&view=rev
Log:
Simplifying Throwable comparator

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/support/common/java/org/apache/harmony/security/tests/support/SerializationTest.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/support/common/java/org/apache/harmony/security/tests/support/SerializationTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/support/common/java/org/apache/harmony/security/tests/support/SerializationTest.java?rev=414750&r1=414749&r2=414750&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/support/common/java/org/apache/harmony/security/tests/support/SerializationTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/support/common/java/org/apache/harmony/security/tests/support/SerializationTest.java
Thu Jun 15 23:39:02 2006
@@ -263,11 +263,8 @@
             } else {
                 TestCase.assertNotNull(tstThr.getCause());
 
-                refThr = refThr.getCause();
-                tstThr = tstThr.getCause();
-
-                TestCase.assertEquals(refThr.getClass(), tstThr.getClass());
-                TestCase.assertEquals(refThr.getMessage(), tstThr.getMessage());
+                THROWABLE_COMPARATOR.assertDeserialized(refThr.getCause(),
+                        tstThr.getCause());
             }
         }
     };



Mime
View raw message