harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r414069 - in /incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/javax/security/auth/kerberos/serialization: KrbDelegationPermissionCollectionTest.java KrbServicePermissionCollectionTest.java
Date Wed, 14 Jun 2006 04:40:09 GMT
Author: smishura
Date: Tue Jun 13 21:40:08 2006
New Revision: 414069

URL: http://svn.apache.org/viewvc?rev=414069&view=rev
Log:
Removing assertDeserialized methods - PermissionCollection objects are compared by testing
framework's comparator

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/javax/security/auth/kerberos/serialization/KrbDelegationPermissionCollectionTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/javax/security/auth/kerberos/serialization/KrbServicePermissionCollectionTest.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/javax/security/auth/kerberos/serialization/KrbDelegationPermissionCollectionTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/javax/security/auth/kerberos/serialization/KrbDelegationPermissionCollectionTest.java?rev=414069&r1=414068&r2=414069&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/javax/security/auth/kerberos/serialization/KrbDelegationPermissionCollectionTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/javax/security/auth/kerberos/serialization/KrbDelegationPermissionCollectionTest.java
Tue Jun 13 21:40:08 2006
@@ -51,17 +51,4 @@
         pc3.add(p3);
         return new Object[] { pc1, pc2, pc3 };
     }
-
-    protected void assertDeserialized(Object golden, Object test) {
-        assertSame(golden.getClass(), test.getClass());
-        PermissionCollection c1 = (PermissionCollection) golden;
-        PermissionCollection c2 = (PermissionCollection) test;
-        Collection s1 = new HashSet();
-        Collection s2 = new HashSet();
-        for (Enumeration en = c1.elements(); en.hasMoreElements(); s1.add(en
-                .nextElement())) {}
-        for (Enumeration en = c2.elements(); en.hasMoreElements(); s2.add(en
-                .nextElement())) {}
-        assertEquals(s1, s2);
-    }
 }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/javax/security/auth/kerberos/serialization/KrbServicePermissionCollectionTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/javax/security/auth/kerberos/serialization/KrbServicePermissionCollectionTest.java?rev=414069&r1=414068&r2=414069&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/javax/security/auth/kerberos/serialization/KrbServicePermissionCollectionTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/javax/security/auth/kerberos/serialization/KrbServicePermissionCollectionTest.java
Tue Jun 13 21:40:08 2006
@@ -50,16 +50,4 @@
         return new Object[] { pc1, pc2, pc3 };
     }
 
-    protected void assertDeserialized(Object golden, Object test) {
-        assertSame(golden.getClass(), test.getClass());
-        PermissionCollection c1 = (PermissionCollection) golden;
-        PermissionCollection c2 = (PermissionCollection) test;
-        Collection s1 = new HashSet();
-        Collection s2 = new HashSet();
-        for (Enumeration en = c1.elements(); en.hasMoreElements(); s1.add(en
-                .nextElement())) {}
-        for (Enumeration en = c2.elements(); en.hasMoreElements(); s2.add(en
-                .nextElement())) {}
-        assertEquals(s1, s2);
-    }
 }



Mime
View raw message