summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sli/common/src/test/java/org/onap/ccsdk/sli/core/sli/TestSvcLogicLoader.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/sli/common/src/test/java/org/onap/ccsdk/sli/core/sli/TestSvcLogicLoader.java b/sli/common/src/test/java/org/onap/ccsdk/sli/core/sli/TestSvcLogicLoader.java
index 8998382e..2dd83e86 100644
--- a/sli/common/src/test/java/org/onap/ccsdk/sli/core/sli/TestSvcLogicLoader.java
+++ b/sli/common/src/test/java/org/onap/ccsdk/sli/core/sli/TestSvcLogicLoader.java
@@ -1,6 +1,7 @@
package org.onap.ccsdk.sli.core.sli;
import static org.junit.Assert.*;
+import java.io.File;
import java.io.IOException;
import java.io.InputStream;
import java.net.URL;
@@ -21,13 +22,12 @@ public class TestSvcLogicLoader {
SvcLogicStore store = SvcLogicStoreFactory.getSvcLogicStore(props);
- URL graphUrl = TestSvcLogicLoader.class.getClassLoader().getResource("graphs");
+ File graphDirectory = new File(getClass().getClassLoader().getResource("graphs").getFile());
- if (graphUrl == null) {
+ if (graphDirectory == null) {
fail("Cannot find graphs directory");
}
-
- SvcLogicLoader loader = new SvcLogicLoader(graphUrl.getPath(), store);
+ SvcLogicLoader loader = new SvcLogicLoader(graphDirectory.getAbsolutePath(), store);
loader.loadAndActivate();