File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
easydao-maven-plugin/src/test/java/hu/vanio/easydao Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 2323 */
2424package hu .vanio .easydao ;
2525
26+ import java .nio .file .Path ;
27+ import java .nio .file .Paths ;
2628import java .util .Properties ;
2729
2830import 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
You can’t perform that action at this time.
0 commit comments