[jboss-svn-commits] JBoss Common SVN: r2905 - 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 10:20:11 EDT 2008
Author: dimitris at jboss.org
Date: 2008-08-26 10:20:11 -0400 (Tue, 26 Aug 2008)
New Revision: 2905
Modified:
common-core/trunk/src/test/java/org/jboss/test/util/test/propertyeditor/PropertyEditorsUnitTestCase.java
Log:
JBCOMMON-60, make the test pass
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 10:29:05 UTC (rev 2904)
+++ common-core/trunk/src/test/java/org/jboss/test/util/test/propertyeditor/PropertyEditorsUnitTestCase.java 2008-08-26 14:20:11 UTC (rev 2905)
@@ -41,7 +41,9 @@
import java.util.concurrent.atomic.AtomicLong;
import junit.framework.TestCase;
+
import org.jboss.logging.Logger;
+import org.jboss.util.Strings;
import org.jboss.util.propertyeditor.DateEditor;
import org.jboss.util.propertyeditor.DocumentEditor;
import org.jboss.util.propertyeditor.ElementEditor;
@@ -287,8 +289,8 @@
Object[][] expectedData = {
{new File("/tmp/test1").getCanonicalFile(), new File("/tmp/test2").getCanonicalFile()},
- {new URL("http://www.jboss.org"), new File("/path with space/tst.xml").getCanonicalFile().toURL()},
- {new URI("http://www.jboss.org"), new File("/path with space/tst.xml").getCanonicalFile().toURI()},
+ {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 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