summaryrefslogtreecommitdiffstats
path: root/vnftools/provider/src/test/java
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2017-10-17 11:14:39 -0400
committerDan Timoney <dtimoney@att.com>2017-10-17 11:14:39 -0400
commit5fa42107512d9b06cb73877dd35739a0b5186840 (patch)
treeabf59a87c8265275bb76c5f4fd5a95fa9d1a6980 /vnftools/provider/src/test/java
parentf6688de2b3f487c631f06659bfd41a662780e57f (diff)
Fix vnftools load issues
Fixed 2 issues that prevented vnftools from loading: 1) Added org.onap.ccsdk.* to Import-Package in provider manifest (needed to resolve path to SvcLogicJavaPlugin) 2) Removed useless Properties arg from VnfTools constructor Change-Id: Iba8213710d012836a7a70fca07c7c232a3b7b539 Issue-ID: SDNC-132 Signed-off-by: Dan Timoney <dtimoney@att.com>
Diffstat (limited to 'vnftools/provider/src/test/java')
-rw-r--r--vnftools/provider/src/test/java/org/onap/sdnc/vnftools/VnfToolsTest.java8
1 files changed, 3 insertions, 5 deletions
diff --git a/vnftools/provider/src/test/java/org/onap/sdnc/vnftools/VnfToolsTest.java b/vnftools/provider/src/test/java/org/onap/sdnc/vnftools/VnfToolsTest.java
index b30ff86f..3cafa8ae 100644
--- a/vnftools/provider/src/test/java/org/onap/sdnc/vnftools/VnfToolsTest.java
+++ b/vnftools/provider/src/test/java/org/onap/sdnc/vnftools/VnfToolsTest.java
@@ -42,14 +42,12 @@ public class VnfToolsTest {
@Before
public void setUp() throws Exception {
- vnfTools = new VnfTools(null);
+ vnfTools = new VnfTools();
}
@Test
public void testConstructor() throws Exception {
- VnfTools vTools = new VnfTools(null);
- Assert.assertTrue("Should have no impact with null property", vTools != null);
- vTools = new VnfTools(new Properties());
+ VnfTools vTools = new VnfTools();
Assert.assertTrue("Should have created", vTools != null);
}
@@ -171,7 +169,7 @@ public class VnfToolsTest {
@Test
public void testPrintContext() throws Exception {
Map<String, String> parameters = new HashMap<>();
- parameters.put(VnfTools.FILENAME, "abc");
+ parameters.put(VnfTools.FILENAME, "target/testPrintContext.out");
vnfTools.printContext(parameters, mockSvcLogicContext);
}