You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by sm...@apache.org on 2006/08/18 13:58:11 UTC
svn commit: r432558 -
/incubator/harmony/enhanced/classlib/trunk/support/src/test/java/org/apache/harmony/testframework/serialization/SerializationTest.java
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);
}