Skip to content

Commit 98cda9c

Browse files
committed
Runnig EngineTest failed on windows, license filename construction fixed.
1 parent 57ce2f2 commit 98cda9c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

easydao-maven-plugin/src/test/java/hu/vanio/easydao/EngineTest.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@
2323
*/
2424
package hu.vanio.easydao;
2525

26+
import java.nio.file.Path;
27+
import java.nio.file.Paths;
2628
import java.util.Properties;
2729

2830
import org.junit.After;
@@ -94,8 +96,8 @@ public void testInitEngineConfiguration() throws Exception {
9496
assertEquals(EngineConfiguration.MISSING_LICENSE_TEXT, instance.getEngineConfiguration().getLicenseText());
9597

9698
java.net.URL url = Thread.currentThread().getContextClassLoader().getResource("license.txt");
97-
98-
props.put("licenseFilename", url.getFile());
99+
Path path = Paths.get(url.toURI());
100+
props.put("licenseFilename", path.toString());
99101
engineConf = EngineConfiguration.createFromProperties(props);
100102
instance = new Engine(engineConf);
101103

0 commit comments

Comments
 (0)