X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=dmaap-bc%2Fsrc%2Ftest%2Fjava%2Forg%2Fonap%2Fdmaap%2Fdbcapi%2Futil%2FGraphTest.java;h=903d73b90f530986a6d8e40151a5612d199f8f84;hb=7de14af42606ea0afbb376e6f05de793108d555b;hp=770ee650398b16c87b2d42b4c9981e7a8995f830;hpb=71d3d0925874247de5e657821638b1c08360f571;p=dmaap%2Fbuscontroller.git diff --git a/dmaap-bc/src/test/java/org/onap/dmaap/dbcapi/util/GraphTest.java b/dmaap-bc/src/test/java/org/onap/dmaap/dbcapi/util/GraphTest.java index 770ee65..903d73b 100644 --- a/dmaap-bc/src/test/java/org/onap/dmaap/dbcapi/util/GraphTest.java +++ b/dmaap-bc/src/test/java/org/onap/dmaap/dbcapi/util/GraphTest.java @@ -19,50 +19,33 @@ */ package org.onap.dmaap.dbcapi.util; -import org.onap.dmaap.dbcapi.model.*; -import org.onap.dmaap.dbcapi.service.*; -import org.onap.dmaap.dbcapi.testframework.ReflectionHarness; - -import static org.junit.Assert.*; - -import org.junit.After; +import java.util.ArrayList; +import java.util.Collection; +import java.util.HashMap; +import java.util.List; import org.junit.Before; import org.junit.Test; -import java.util.*; +import org.onap.dmaap.dbcapi.model.DcaeLocation; +import org.onap.dmaap.dbcapi.model.MR_Client; +import org.onap.dmaap.dbcapi.service.DcaeLocationService; +import org.onap.dmaap.dbcapi.testframework.ReflectionHarness; public class GraphTest { - private static final String fmt = "%24s: %s%n"; - ReflectionHarness rh = new ReflectionHarness(); Graph g; - @Before public void setUp() throws Exception { - HashMap hm = new HashMap(); + System.setProperty("ConfigFile", "src/test/resources/dmaapbc.properties"); + HashMap hm = new HashMap<>(); g = new Graph( hm ); } - @After - public void tearDown() throws Exception { - } - - @Test public void test1() { - - - rh.reflect( "org.onap.dmaap.dbcapi.util.Graph", "get", "idNotSet@namespaceNotSet:pwdNotSet" ); - - } - - @Test - public void test2() { - String v = "Validate"; - //rh.reflect( "org.onap.dmaap.dbcapi.util.Graph", "set", v ); - + rh.reflect( "org.onap.dmaap.dbcapi.util.Graph", "get", "idNotSet@namespaceNotSet:pwdNotSet" ); } @Test @@ -82,7 +65,6 @@ public class GraphTest { HashMap hm = new HashMap(); - String s = g.put( "aKey", "aVal" ); s = g.get( "aKey" ); @@ -93,10 +75,7 @@ public class GraphTest { hm = g.getGraph(); Collection k = g.getKeys(); - } - - }