harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r440589 - in /incubator/harmony/enhanced/classlib/trunk/modules: prefs/src/test/java/org/apache/harmony/prefs/tests/java/util/prefs/ security/src/test/api/java/org/apache/harmony/security/tests/java/security/serialization/
Date Wed, 06 Sep 2006 03:19:42 GMT
Author: smishura
Date: Tue Sep  5 20:19:41 2006
New Revision: 440589

URL: http://svn.apache.org/viewvc?view=rev&rev=440589
Log:
Replace putObjectToStream by copySerializable

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/prefs/src/test/java/org/apache/harmony/prefs/tests/java/util/prefs/NodeChangeEventTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/prefs/src/test/java/org/apache/harmony/prefs/tests/java/util/prefs/PreferenceChangeEventTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/serialization/GuardedObjectTest.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/prefs/src/test/java/org/apache/harmony/prefs/tests/java/util/prefs/NodeChangeEventTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/prefs/src/test/java/org/apache/harmony/prefs/tests/java/util/prefs/NodeChangeEventTest.java?view=diff&rev=440589&r1=440588&r2=440589
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/prefs/src/test/java/org/apache/harmony/prefs/tests/java/util/prefs/NodeChangeEventTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/prefs/src/test/java/org/apache/harmony/prefs/tests/java/util/prefs/NodeChangeEventTest.java
Tue Sep  5 20:19:41 2006
@@ -15,9 +15,7 @@
 
 package org.apache.harmony.prefs.tests.java.util.prefs;
 
-import java.io.ByteArrayOutputStream;
 import java.io.NotSerializableException;
-import java.io.ObjectOutputStream;
 import java.util.prefs.NodeChangeEvent;
 import java.util.prefs.Preferences;
 
@@ -58,8 +56,7 @@
         event = new NodeChangeEvent(Preferences.systemRoot(), null);
 
         try {
-            SerializationTest.putObjectToStream(event, new ObjectOutputStream(
-                    new ByteArrayOutputStream()));
+            SerializationTest.copySerializable(event);
             fail("No expected NotSerializableException");
         } catch (NotSerializableException e) {
         }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/prefs/src/test/java/org/apache/harmony/prefs/tests/java/util/prefs/PreferenceChangeEventTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/prefs/src/test/java/org/apache/harmony/prefs/tests/java/util/prefs/PreferenceChangeEventTest.java?view=diff&rev=440589&r1=440588&r2=440589
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/prefs/src/test/java/org/apache/harmony/prefs/tests/java/util/prefs/PreferenceChangeEventTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/prefs/src/test/java/org/apache/harmony/prefs/tests/java/util/prefs/PreferenceChangeEventTest.java
Tue Sep  5 20:19:41 2006
@@ -15,9 +15,7 @@
 
 package org.apache.harmony.prefs.tests.java.util.prefs;
 
-import java.io.ByteArrayOutputStream;
 import java.io.NotSerializableException;
-import java.io.ObjectOutputStream;
 import java.util.prefs.PreferenceChangeEvent;
 import java.util.prefs.Preferences;
 
@@ -79,8 +77,7 @@
         event = new PreferenceChangeEvent(Preferences.userRoot(), "key",
                 "value");
         try {
-            SerializationTest.putObjectToStream(event, new ObjectOutputStream(
-                    new ByteArrayOutputStream()));
+            SerializationTest.copySerializable(event);
             fail("No expected NotSerializableException");
         } catch (NotSerializableException e) {
         }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/serialization/GuardedObjectTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/serialization/GuardedObjectTest.java?view=diff&rev=440589&r1=440588&r2=440589
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/serialization/GuardedObjectTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/security/src/test/api/java/org/apache/harmony/security/tests/java/security/serialization/GuardedObjectTest.java
Tue Sep  5 20:19:41 2006
@@ -21,7 +21,6 @@
 
 package org.apache.harmony.security.tests.java.security.serialization;
 
-import java.io.ByteArrayOutputStream;
 import java.io.Serializable;
 import java.security.GuardedObject;
 
@@ -52,8 +51,7 @@
 
     public void testDisableGuard() throws Throwable {
         try {
-            putObjectToStream(new GuardedObject(null, new MyGuard(false)),
-                    new ByteArrayOutputStream());
+            copySerializable(new GuardedObject(null, new MyGuard(false)));
             fail("Should not serialize if guard denies access");
         }
         catch (SecurityException ok) {}



Mime
View raw message