METAMODEL-1104: Fixed broken unittest
authorkaspersorensen <i.am.kasper.sorensen@gmail.com>
Thu, 28 Jul 2016 15:12:36 +0000 (08:12 -0700)
committerkaspersorensen <i.am.kasper.sorensen@gmail.com>
Thu, 28 Jul 2016 15:12:36 +0000 (08:12 -0700)
Closes #116

core/src/test/java/org/apache/metamodel/factory/ResourceFactoryRegistryImplTest.java

index 0122253..816fc32 100644 (file)
@@ -36,7 +36,8 @@ public class ResourceFactoryRegistryImplTest {
     @Test
     public void testGetQualifiedFileResource() throws Exception {
         final File file = new File("src/test/resources/unicode-text-utf8.txt");
-        final Resource res = registry.createResource(new SimpleResourceProperties("file:///" + file.getAbsolutePath()));
+        final Resource res = registry.createResource(new SimpleResourceProperties("file:///" + file.getAbsolutePath()
+                .replace('\\', '/')));
         assertTrue(res.isExists());
         assertEquals("unicode-text-utf8.txt", res.getName());
     }