diff options
author | Dan Timoney <dt5972@att.com> | 2018-05-03 22:02:13 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2018-05-03 22:02:13 +0000 |
commit | 3b6c7cc071950e474f774f2a3ac0deb75fc93cdd (patch) | |
tree | ad7dc1dfe593c98a386043d122fb8c24c9fa039d | |
parent | 979b646bec328670a9ef4c9f24ebd5a4e0ae3987 (diff) | |
parent | dc58dd879f9fbac661ef845b6a45e7e0f9bf9175 (diff) |
Merge "TestSvcLogicLoader for windows"
-rw-r--r-- | sli/common/src/test/java/org/onap/ccsdk/sli/core/sli/TestSvcLogicLoader.java | 8 |
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 8998382ec..2dd83e86d 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(); |