harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ghar...@apache.org
Subject svn commit: r405036 - /incubator/harmony/enhanced/classlib/trunk/modules/text/src/test/java/org/apache/harmony/text/tests/java/text/DecimalFormatSymbolsTest.java
Date Mon, 08 May 2006 12:35:57 GMT
Author: gharley
Date: Mon May  8 05:35:55 2006
New Revision: 405036

URL: http://svn.apache.org/viewcvs?rev=405036&view=rev
Log:
HARMONY-435 : DecimalFormatSymbolsTest.test_RIHarmony_compatible() passes or fails depending
on location of resource

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/text/src/test/java/org/apache/harmony/text/tests/java/text/DecimalFormatSymbolsTest.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/text/src/test/java/org/apache/harmony/text/tests/java/text/DecimalFormatSymbolsTest.java
URL: http://svn.apache.org/viewcvs/incubator/harmony/enhanced/classlib/trunk/modules/text/src/test/java/org/apache/harmony/text/tests/java/text/DecimalFormatSymbolsTest.java?rev=405036&r1=405035&r2=405036&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/text/src/test/java/org/apache/harmony/text/tests/java/text/DecimalFormatSymbolsTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/text/src/test/java/org/apache/harmony/text/tests/java/text/DecimalFormatSymbolsTest.java
Mon May  8 05:35:55 2006
@@ -409,14 +409,13 @@
 		try {
 			DecimalFormatSymbols symbols = new DecimalFormatSymbols(
 					Locale.FRANCE);
-			i = new ObjectInputStream(
-					new FileInputStream(
-							new File(URI.create(
-									this.getClass().getResource(
-										"/serialization/java/text/DecimalFormatSymbols.ser")
-											.toString()))));
-			DecimalFormatSymbols symbolsD = (DecimalFormatSymbols) i
-					.readObject();
+            i = new ObjectInputStream(
+                    getClass()
+                            .getClassLoader()
+                            .getResourceAsStream(
+                                    "/serialization/java/text/DecimalFormatSymbols.ser"));
+            DecimalFormatSymbols symbolsD = (DecimalFormatSymbols) i
+                    .readObject();
 			assertEquals(symbols, symbolsD);
 		} finally {
 			try {



Mime
View raw message