harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r414158 - in /incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/java/security/serialization: GuardedObjectTest.java SignedObjectTest.java
Date Wed, 14 Jun 2006 09:06:19 GMT
Author: smishura
Date: Wed Jun 14 02:06:19 2006
New Revision: 414158

URL: http://svn.apache.org/viewvc?rev=414158&view=rev
Log:
Implementing SerializableAssert interface to provide class specific checks

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/java/security/serialization/GuardedObjectTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/java/security/serialization/SignedObjectTest.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/java/security/serialization/GuardedObjectTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/java/security/serialization/GuardedObjectTest.java?rev=414158&r1=414157&r2=414158&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/java/security/serialization/GuardedObjectTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/java/security/serialization/GuardedObjectTest.java
Wed Jun 14 02:06:19 2006
@@ -34,7 +34,8 @@
  * 
  */
 
-public class GuardedObjectTest extends SerializationTest {
+public class GuardedObjectTest extends SerializationTest implements
+        SerializationTest.SerializableAssert {
 
     /**
      * @see com.intel.drl.test.SerializationTest#getData()
@@ -45,7 +46,7 @@
                 new GuardedObject(new Integer(76547), new RealGuard(true)), };
     }
 
-    protected void assertDeserialized(Object golden, Object test) {
+    public void assertDeserialized(Serializable golden, Serializable test) {
         assertSame(golden.getClass(), test.getClass());
         assertEquals(((GuardedObject) golden).getObject(),
                 ((GuardedObject) test).getObject());

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/java/security/serialization/SignedObjectTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/java/security/serialization/SignedObjectTest.java?rev=414158&r1=414157&r2=414158&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/java/security/serialization/SignedObjectTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/java/security/serialization/SignedObjectTest.java
Wed Jun 14 02:06:19 2006
@@ -22,6 +22,7 @@
 package java.security.serialization;
 
 import java.io.IOException;
+import java.io.Serializable;
 import java.security.InvalidKeyException;
 import java.security.NoSuchAlgorithmException;
 import java.security.Signature;
@@ -38,7 +39,8 @@
  * Tests for SignedObject serialization
  * 
  */
-public class SignedObjectTest extends SerializationTest {
+public class SignedObjectTest extends SerializationTest implements
+        SerializationTest.SerializableAssert {
 
 	private Signature sig;
 	private TestKeyPair tkp = null;
@@ -72,7 +74,7 @@
        return new Object[] { o };
     }
 
-    protected void assertDeserialized(Object oref, Object otest) {
+    public void assertDeserialized(Serializable oref, Serializable otest) {
     	SignedObject ref = (SignedObject) oref;
     	SignedObject test = (SignedObject) otest;
 



Mime
View raw message