You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@metamodel.apache.org by ka...@apache.org on 2017/05/10 03:54:06 UTC

[04/43] metamodel git commit: METAMODEL-1104: Fixed broken unittest

METAMODEL-1104: Fixed broken unittest 

Closes #116

Project: http://git-wip-us.apache.org/repos/asf/metamodel/repo
Commit: http://git-wip-us.apache.org/repos/asf/metamodel/commit/ae5ec80e
Tree: http://git-wip-us.apache.org/repos/asf/metamodel/tree/ae5ec80e
Diff: http://git-wip-us.apache.org/repos/asf/metamodel/diff/ae5ec80e

Branch: refs/heads/5.x
Commit: ae5ec80e146ace4d1e3b66b2e8181e2e255b1e20
Parents: a5235c1
Author: kaspersorensen <i....@gmail.com>
Authored: Thu Jul 28 08:12:36 2016 -0700
Committer: kaspersorensen <i....@gmail.com>
Committed: Thu Jul 28 08:12:36 2016 -0700

----------------------------------------------------------------------
 .../apache/metamodel/factory/ResourceFactoryRegistryImplTest.java | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/metamodel/blob/ae5ec80e/core/src/test/java/org/apache/metamodel/factory/ResourceFactoryRegistryImplTest.java
----------------------------------------------------------------------
diff --git a/core/src/test/java/org/apache/metamodel/factory/ResourceFactoryRegistryImplTest.java b/core/src/test/java/org/apache/metamodel/factory/ResourceFactoryRegistryImplTest.java
index 0122253..816fc32 100644
--- a/core/src/test/java/org/apache/metamodel/factory/ResourceFactoryRegistryImplTest.java
+++ b/core/src/test/java/org/apache/metamodel/factory/ResourceFactoryRegistryImplTest.java
@@ -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());
     }