harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r416318 - /incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/support/common/java/org/apache/harmony/security/tests/support/SerializationTest.java
Date Thu, 22 Jun 2006 10:22:21 GMT
Author: smishura
Date: Thu Jun 22 03:22:20 2006
New Revision: 416318

URL: http://svn.apache.org/viewvc?rev=416318&view=rev
Log:
Remove confusing 'TestCase' param from verifySelf methods

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=416318&r1=416317&r2=416318&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 22 03:22:20 2006
@@ -127,7 +127,12 @@
      */
     public void testSelf() throws Throwable {
 
-        verifySelf(this, getData());
+        if (this instanceof SerializableAssert) {
+            verifySelf(getData(), (SerializableAssert) this);
+        } else {
+            verifySelf(getData());
+
+        }
     }
 
     /**
@@ -410,17 +415,15 @@
      * Verifies that object can be smoothly serialized/deserialized.
      * 
      * The method invokes <br>
-     * verifySelf(object, defineComparator(test, object));
+     * verifySelf(object, defineComparator(null, object));
      * 
-     * @param test -
-     *            test case
      * @param object -
      *            to be serialized/deserialized
      */
-    public static void verifySelf(TestCase test, Object object)
+    public static void verifySelf(Object object)
             throws Exception {
 
-        verifySelf(object, defineComparator(test, object));
+        verifySelf(object, defineComparator(null, object));
     }
     
     /**
@@ -452,18 +455,16 @@
      * serialized/deserialized.
      * 
      * The method invokes <br>
-     * verifySelf(objects, defineComparator(test, object[0]));
+     * verifySelf(objects, defineComparator(null, object[0]));
      * 
-     * @param test -
-     *            test case
      * @param objects -
      *            array of objects to be serialized/deserialized
      */
-    public static void verifySelf(TestCase test, Object[] objects)
+    public static void verifySelf(Object[] objects)
             throws Exception {
 
         TestCase.assertFalse("Empty array", objects.length == 0);
-        verifySelf(objects, defineComparator(test, objects[0]));
+        verifySelf(objects, defineComparator(null, objects[0]));
     }
     
     /**



Mime
View raw message