harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r432558 - /incubator/harmony/enhanced/classlib/trunk/support/src/test/java/org/apache/harmony/testframework/serialization/SerializationTest.java
Date Fri, 18 Aug 2006 11:58:11 GMT
Author: smishura
Date: Fri Aug 18 04:58:08 2006
New Revision: 432558

URL: http://svn.apache.org/viewvc?rev=432558&view=rev
Log:
Finished renaming serialization resource files (.dat-> .ser) - remove the stub

Modified:
    incubator/harmony/enhanced/classlib/trunk/support/src/test/java/org/apache/harmony/testframework/serialization/SerializationTest.java

Modified: incubator/harmony/enhanced/classlib/trunk/support/src/test/java/org/apache/harmony/testframework/serialization/SerializationTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/support/src/test/java/org/apache/harmony/testframework/serialization/SerializationTest.java?rev=432558&r1=432557&r2=432558&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/support/src/test/java/org/apache/harmony/testframework/serialization/SerializationTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/support/src/test/java/org/apache/harmony/testframework/serialization/SerializationTest.java
Fri Aug 18 04:58:08 2006
@@ -519,18 +519,9 @@
 
         InputStream in = ClassLoader.getSystemClassLoader()
                 .getResourceAsStream(path.toString());
-        // Assert.assertNotNull("Failed to load resource file: " + path, in);
-        if (in == null) {
-            // FIXME stub for loading resource files in old way 
-            String filename = test.getClass().getName().replace('.',
-                    File.separatorChar)
-                    + toAppend.replaceAll("\\.golden", "").replaceAll("\\.ser",
-                            ".dat");
-            if (outputPath != null && outputPath.length() != 0) {
-                filename = outputPath + File.separator + filename;
-            }
-            in = new FileInputStream(filename);
-        }
+
+        Assert.assertNotNull("Failed to load serialization resource file: "
+                + path, in);
 
         return (Serializable)getObjectFromStream(in);
     }



Mime
View raw message