harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r406912 - in /incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security: cert/serialization/ serialization/
Date Tue, 16 May 2006 11:19:26 GMT
Author: smishura
Date: Tue May 16 04:19:21 2006
New Revision: 406912

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

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/cert/serialization/CertPathValidatorExceptionTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/AccessControlExceptionTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/PrivilegedActionExceptionTest.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/cert/serialization/CertPathValidatorExceptionTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/cert/serialization/CertPathValidatorExceptionTest.java?rev=406912&r1=406911&r2=406912&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/cert/serialization/CertPathValidatorExceptionTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/cert/serialization/CertPathValidatorExceptionTest.java
Tue May 16 04:19:21 2006
@@ -21,6 +21,7 @@
 
 package java.security.cert.serialization;
 
+import java.io.Serializable;
 import java.security.cert.CertPath;
 import java.security.cert.CertPathValidatorException;
 
@@ -32,7 +33,8 @@
  * 
  */
 
-public class CertPathValidatorExceptionTest extends SerializationTest {
+public class CertPathValidatorExceptionTest extends SerializationTest implements
+        SerializationTest.SerializableAssert {
 
     public static String[] msgs = {
             "New message",
@@ -53,7 +55,7 @@
                 new CertPathValidatorException(msgs[1], dExc, null, -1) };
     }
 
-    protected void assertDeserialized(Object oref, Object otest) {
+    public void assertDeserialized(Serializable oref, Serializable otest) {
         CertPathValidatorException ref = (CertPathValidatorException) oref;
         CertPathValidatorException test = (CertPathValidatorException) otest;
         String s = ref.getMessage();

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/AccessControlExceptionTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/AccessControlExceptionTest.java?rev=406912&r1=406911&r2=406912&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/AccessControlExceptionTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/AccessControlExceptionTest.java
Tue May 16 04:19:21 2006
@@ -21,9 +21,10 @@
 
 package java.security.serialization;
 
+import java.io.Serializable;
+import java.security.AccessControlException;
 import java.security.AllPermission;
 import java.security.Permission;
-import java.security.AccessControlException;
 
 import org.apache.harmony.security.support.SerializationTest;
 
@@ -33,7 +34,8 @@
  * 
  */
 
-public class AccessControlExceptionTest extends SerializationTest {
+public class AccessControlExceptionTest extends SerializationTest implements
+        SerializationTest.SerializableAssert {
 
     public static void main(String[] args) {
         junit.textui.TestRunner.run(AccessControlExceptionTest.class);
@@ -47,7 +49,7 @@
                 new AccessControlException("string2", allperms) };
     }
 
-    protected void assertDeserialized(Object oref, Object otest) {
+    public void assertDeserialized(Serializable oref, Serializable otest) {
         AccessControlException ref = (AccessControlException) oref;
         AccessControlException test = (AccessControlException) otest;
         String s = ref.getMessage();

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/PrivilegedActionExceptionTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/PrivilegedActionExceptionTest.java?rev=406912&r1=406911&r2=406912&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/PrivilegedActionExceptionTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/java/common/java/security/serialization/PrivilegedActionExceptionTest.java
Tue May 16 04:19:21 2006
@@ -21,6 +21,7 @@
 
 package java.security.serialization;
 
+import java.io.Serializable;
 import java.security.PrivilegedActionException;
 
 import org.apache.harmony.security.support.SerializationTest;
@@ -30,7 +31,8 @@
  * Serialization testing for PrivilegedActionException.
  */
 
-public class PrivilegedActionExceptionTest extends SerializationTest {
+public class PrivilegedActionExceptionTest extends SerializationTest implements
+        SerializationTest.SerializableAssert {
     
     public static void main(String[] args) {
         junit.textui.TestRunner.run(PrivilegedActionExceptionTest.class);
@@ -46,7 +48,7 @@
         };
     }
     
-    protected void assertDeserialized(Object reference, Object otest) {
+    public void assertDeserialized(Serializable reference, Serializable otest) {
         PrivilegedActionException ref = (PrivilegedActionException)reference;
         PrivilegedActionException test = (PrivilegedActionException)otest;
         if( ref.getException() == null ) {



Mime
View raw message