harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r426420 - in /incubator/harmony/enhanced/classlib/trunk/modules/security/src/test: api/java.injected/java/security/serialization/ resources/java/security/serialization/
Date Fri, 28 Jul 2006 07:42:16 GMT
Author: smishura
Date: Fri Jul 28 00:42:15 2006
New Revision: 426420

URL: http://svn.apache.org/viewvc?rev=426420&view=rev
Log:
Refactoring BasicPermission serialization test - use support test class + remove redundant
cases

Removed:
    incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/resources/java/security/serialization/BasicPermissionTest.1.dat
    incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/resources/java/security/serialization/BasicPermissionTest.2.dat
Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/java/security/serialization/BasicPermissionTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/resources/java/security/serialization/BasicPermissionTest.0.dat

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/java/security/serialization/BasicPermissionTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/java/security/serialization/BasicPermissionTest.java?rev=426420&r1=426419&r2=426420&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/java/security/serialization/BasicPermissionTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java.injected/java/security/serialization/BasicPermissionTest.java
Fri Jul 28 00:42:15 2006
@@ -21,30 +21,16 @@
 
 package java.security.serialization;
 
-import java.security.BasicPermission;
-
+import org.apache.harmony.security.tests.support.MyBasicPermission;
 import org.apache.harmony.testframework.serialization.SerializationTest;
 
-
 /**
  * Serialization tests for <code>BasicPermission</code>
- * 
  */
 
 public class BasicPermissionTest extends SerializationTest {
 
-    /*
-     * @see com.intel.drl.test.SerializationTest#getData()
-     */
     protected Object[] getData() {
-        return new Object[] { new RealBasicPermission("kjhgj"),
-                new RealBasicPermission("1.4.*"), new RealBasicPermission("*") };
+        return new Object[] { new MyBasicPermission("kjhgj") };
     }
 }
-
-final class RealBasicPermission extends BasicPermission {
-
-    public RealBasicPermission(String name) {
-        super(name);
-    }
-}
\ No newline at end of file

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/resources/java/security/serialization/BasicPermissionTest.0.dat
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/resources/java/security/serialization/BasicPermissionTest.0.dat?rev=426420&r1=426419&r2=426420&view=diff
==============================================================================
Binary files - no diff available.



Mime
View raw message