diff options
author | Smokowski, Kevin (ks6305) <ks6305@att.com> | 2018-05-03 19:11:40 +0000 |
---|---|---|
committer | Smokowski, Kevin (ks6305) <ks6305@att.com> | 2018-05-03 19:11:40 +0000 |
commit | dc58dd879f9fbac661ef845b6a45e7e0f9bf9175 (patch) | |
tree | 169cb13fc7389a24c5cc4fc6d9353a72228cbbd8 | |
parent | 1f66572b9e9622634086922caf73f82c24ab50da (diff) |
TestSvcLogicLoader for windows
TestSvcLogicLoader fails when run against a machine running windows
Change-Id: I3687ac21c50cde10b1e8a0ed816b67d48c5e77f9
Issue-ID: CCSDK-266
Signed-off-by: Smokowski, Kevin (ks6305) <ks6305@att.com>
-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(); |