Author: cbegin
Date: Wed Oct 7 02:06:39 2009
New Revision: 822550
URL: http://svn.apache.org/viewvc?rev=822550&view=rev
Log:
IBATIS-651 ResourcesTest fails on Windows fixed as described
Modified:
ibatis/java/ibatis-3/trunk/ibatis-3-core/src/test/java/org/apache/ibatis/io/ResourcesTest.java
Modified:
ibatis/java/ibatis-3/trunk/ibatis-3-core/src/test/java/org/apache/ibatis/io/ResourcesTest.java
URL:
http://svn.apache.org/viewvc/ibatis/java/ibatis-3/trunk/ibatis-3-core/src/test/java/org/apache/ibatis/io/ResourcesTest.java?rev=822550&r1=822549&r2=822550&view=diff
==============================================================================
---
ibatis/java/ibatis-3/trunk/ibatis-3-core/src/test/java/org/apache/ibatis/io/ResourcesTest.java
(original)
+++
ibatis/java/ibatis-3/trunk/ibatis-3-core/src/test/java/org/apache/ibatis/io/ResourcesTest.java
Wed Oct 7 02:06:39 2009
@@ -69,13 +69,13 @@
@Test
public void shouldGetResourceAsFile() throws Exception {
File file = Resources.getResourceAsFile(JPETSTORE_PROPERTIES);
-
assertTrue(file.getAbsolutePath().endsWith("jpetstore/jpetstore-hsqldb.properties"));
+
assertTrue(file.getAbsolutePath().replace('\\','/').endsWith("jpetstore/jpetstore-hsqldb.properties"));
}
@Test
public void shouldGetResourceAsFileWithClassloader() throws Exception {
File file = Resources.getResourceAsFile(CLASS_LOADER,
JPETSTORE_PROPERTIES);
-
assertTrue(file.getAbsolutePath().endsWith("jpetstore/jpetstore-hsqldb.properties"));
+
assertTrue(file.getAbsolutePath().replace('\\','/').endsWith("jpetstore/jpetstore-hsqldb.properties"));
}
@Test