You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by ad...@apache.org on 2012/05/05 12:17:44 UTC

svn commit: r1334382 - /ofbiz/trunk/framework/base/src/org/ofbiz/base/util/test/UtilPropertiesTests.java

Author: adrianc
Date: Sat May  5 10:17:44 2012
New Revision: 1334382

URL: http://svn.apache.org/viewvc?rev=1334382&view=rev
Log:
Small fixup for my previous commit.

Modified:
    ofbiz/trunk/framework/base/src/org/ofbiz/base/util/test/UtilPropertiesTests.java

Modified: ofbiz/trunk/framework/base/src/org/ofbiz/base/util/test/UtilPropertiesTests.java
URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/base/src/org/ofbiz/base/util/test/UtilPropertiesTests.java?rev=1334382&r1=1334381&r2=1334382&view=diff
==============================================================================
--- ofbiz/trunk/framework/base/src/org/ofbiz/base/util/test/UtilPropertiesTests.java (original)
+++ ofbiz/trunk/framework/base/src/org/ofbiz/base/util/test/UtilPropertiesTests.java Sat May  5 10:17:44 2012
@@ -18,16 +18,16 @@
  *******************************************************************************/
 package org.ofbiz.base.util.test;
 
-
-import org.ofbiz.base.test.GenericTestCaseBase;
-import org.ofbiz.base.util.UtilProperties;
-import java.nio.charset.Charset;
 import java.io.ByteArrayInputStream;
 import java.io.IOException;
 import java.io.InputStream;
+import java.nio.charset.Charset;
 import java.util.Locale;
 import java.util.Properties;
 
+import org.ofbiz.base.test.GenericTestCaseBase;
+import org.ofbiz.base.util.UtilProperties;
+
 public class UtilPropertiesTests extends GenericTestCaseBase {
 
     private final String country = "AU";
@@ -66,7 +66,7 @@ public class UtilPropertiesTests extends
     }
 
     private Properties xmlToProperties(String separator) throws IOException {
-        String xmlData = new String("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
+        String xmlData = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
                 "<resource xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n" +
                 "          xsi:noNamespaceSchemaLocation=\"http://ofbiz.apache.org/dtds/ofbiz-properties.xsd\">\n" +
                 "    <property key=\"PropertyKey\">\n" +
@@ -74,7 +74,7 @@ public class UtilPropertiesTests extends
                 language + separator + country +
                 "\">Key Value</value>\n" +
                 "    </property>\n" +
-                "</resource>");
+                "</resource>";
         InputStream in = new ByteArrayInputStream(new String(xmlData.getBytes(), Charset.forName("UTF-8")).getBytes());
         return UtilProperties.xmlToProperties(in, locale, null);
     }