[jboss-svn-commits] JBoss Common SVN: r2906 - common-core/trunk/src/test/java/org/jboss/test/util/test/propertyeditor.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Tue Aug 26 12:25:19 EDT 2008


Author: dimitris at jboss.org
Date: 2008-08-26 12:25:19 -0400 (Tue, 26 Aug 2008)
New Revision: 2906

Modified:
   common-core/trunk/src/test/java/org/jboss/test/util/test/propertyeditor/PropertyEditorsUnitTestCase.java
Log:
JBCOMMON-60, make the test pass - properly :-)

Modified: common-core/trunk/src/test/java/org/jboss/test/util/test/propertyeditor/PropertyEditorsUnitTestCase.java
===================================================================
--- common-core/trunk/src/test/java/org/jboss/test/util/test/propertyeditor/PropertyEditorsUnitTestCase.java	2008-08-26 14:20:11 UTC (rev 2905)
+++ common-core/trunk/src/test/java/org/jboss/test/util/test/propertyeditor/PropertyEditorsUnitTestCase.java	2008-08-26 16:25:19 UTC (rev 2906)
@@ -289,8 +289,8 @@
       
       Object[][] expectedData = {
          {new File("/tmp/test1").getCanonicalFile(), new File("/tmp/test2").getCanonicalFile()},
-         {new URL("http://www.jboss.org"), Strings.toURL("file:/path with space/tst.xml")},
-         {new URI("http://www.jboss.org"), Strings.toURI("file:/path with space/tst.xml")},
+         {new URL("http://www.jboss.org"), new File("/path with space/tst.xml").getCanonicalFile().toURI().toURL()},
+         {new URI("http://www.jboss.org"), new File("/path with space/tst.xml").getCanonicalFile().toURI()},
          {new String("JBoss, Home of Professional Open Source")},
          {java.util.Arrays.class},
          {InetAddress.getByName("127.0.0.1"), InetAddress.getByName("localhost")},




More information about the jboss-svn-commits mailing list