harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r414077 - in /incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/javax/security/auth: kerberos/serialization/ serialization/
Date Wed, 14 Jun 2006 05:11:46 GMT
Author: smishura
Date: Tue Jun 13 22:11:46 2006
New Revision: 414077

URL: http://svn.apache.org/viewvc?rev=414077&view=rev
Log:
Removing unnecessary assertDeserialized methods - Permission objects have equals method()

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/javax/security/auth/kerberos/serialization/DelegationPermissionTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/javax/security/auth/kerberos/serialization/ServicePermissionTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/javax/security/auth/serialization/SerAuthPermissionTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/javax/security/auth/serialization/SerPrivateCredentialPermissionTest.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/javax/security/auth/kerberos/serialization/DelegationPermissionTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/javax/security/auth/kerberos/serialization/DelegationPermissionTest.java?rev=414077&r1=414076&r2=414077&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/javax/security/auth/kerberos/serialization/DelegationPermissionTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/javax/security/auth/kerberos/serialization/DelegationPermissionTest.java
Tue Jun 13 22:11:46 2006
@@ -37,10 +37,4 @@
                 new DelegationPermission("\"AAA\" \"BBB\"", "action"),
                 new DelegationPermission("\"AAA\" \"CCC\"") };
     }
-
-    protected void assertDeserialized(Object golden, Object test) {
-        assertTrue(golden instanceof DelegationPermission);
-        assertEquals(((DelegationPermission) golden).getName(),
-                ((DelegationPermission) test).getName());
-    }
 }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/javax/security/auth/kerberos/serialization/ServicePermissionTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/javax/security/auth/kerberos/serialization/ServicePermissionTest.java?rev=414077&r1=414076&r2=414077&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/javax/security/auth/kerberos/serialization/ServicePermissionTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/javax/security/auth/kerberos/serialization/ServicePermissionTest.java
Tue Jun 13 22:11:46 2006
@@ -37,12 +37,4 @@
                 new ServicePermission("CCC", "initiate, accept"),
                 new ServicePermission("CCC", "accept, initiate ") };
     }
-
-    protected void assertDeserialized(Object golden, Object test) {
-        assertTrue(golden instanceof ServicePermission);
-        assertEquals(((ServicePermission) golden).getName(),
-                ((ServicePermission) test).getName());
-        assertEquals(((ServicePermission) golden).getActions(),
-                ((ServicePermission) test).getActions());
-    }
 }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/javax/security/auth/serialization/SerAuthPermissionTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/javax/security/auth/serialization/SerAuthPermissionTest.java?rev=414077&r1=414076&r2=414077&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/javax/security/auth/serialization/SerAuthPermissionTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/javax/security/auth/serialization/SerAuthPermissionTest.java
Tue Jun 13 22:11:46 2006
@@ -35,10 +35,4 @@
     protected Object[] getData() {
         return new Object[] {new AuthPermission("name", "read")};
     }
-     
-    protected void assertDeserialized(Object golden, Object test) {
-        assertSame(golden.getClass(), test.getClass());
-        assertEquals(((AuthPermission) golden).getName(),
-                (((AuthPermission) test).getName()));
-    }
 }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/javax/security/auth/serialization/SerPrivateCredentialPermissionTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/javax/security/auth/serialization/SerPrivateCredentialPermissionTest.java?rev=414077&r1=414076&r2=414077&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/javax/security/auth/serialization/SerPrivateCredentialPermissionTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/javax/security/auth/serialization/SerPrivateCredentialPermissionTest.java
Tue Jun 13 22:11:46 2006
@@ -35,10 +35,4 @@
     protected Object[] getData() {
         return new Object[] {new PrivateCredentialPermission("a.b.Cred a.c.Princ \"duke\"",
"read")};
     }
-    	
-    protected void assertDeserialized(Object golden, Object test) {
-        assertSame(golden.getClass(), test.getClass());
-        assertEquals(((PrivateCredentialPermission) golden).getName(),
-                (((PrivateCredentialPermission) test).getName()));
-    }
 }



Mime
View raw message