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 23
23
*/
24
24
package hu .vanio .easydao ;
25
25
26
+ import java .nio .file .Path ;
27
+ import java .nio .file .Paths ;
26
28
import java .util .Properties ;
27
29
28
30
import org .junit .After ;
@@ -94,8 +96,8 @@ public void testInitEngineConfiguration() throws Exception {
94
96
assertEquals (EngineConfiguration .MISSING_LICENSE_TEXT , instance .getEngineConfiguration ().getLicenseText ());
95
97
96
98
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 ());
99
101
engineConf = EngineConfiguration .createFromProperties (props );
100
102
instance = new Engine (engineConf );
101
103
You can’t perform that action at this time.
0 commit comments