Fixed incorrect path construction in JUnit tests.
[yangtools.git] / code-generator / binding-generator-impl / src / test / java / org / opendaylight / yangtools / sal / binding / generator / impl / GeneratedTypesStringTest.java
index 5aacf67c09729bdeed2d9b6c4e6dfa70b6feb021..ada474a78ed2206c44bf89357fb2cbb2b299dae9 100644 (file)
@@ -10,6 +10,7 @@ package org.opendaylight.yangtools.sal.binding.generator.impl;
 import static org.junit.Assert.*;
 
 import java.io.File;
+import java.net.URISyntaxException;
 import java.util.ArrayList;
 import java.util.List;
 import java.util.Set;
@@ -31,9 +32,9 @@ public class GeneratedTypesStringTest {
     private final static List<File> testModels = new ArrayList<File>();
 
     @BeforeClass
-    public static void loadTestResources() {
+    public static void loadTestResources() throws URISyntaxException {
         final File listModelFile = new File(GeneratedTypesStringTest.class.getResource("/simple-string-demo.yang")
-                .getPath());
+                .toURI());
         testModels.add(listModelFile);
     }