X-Git-Url: https://gerrit.onap.org/r/gitweb?p=dmaap%2Fbuscontroller.git;a=blobdiff_plain;f=dmaap-bc%2Fsrc%2Ftest%2Fjava%2Forg%2Fonap%2Fdmaap%2Fdbcapi%2Fservice%2FDR_NodeServiceTest.java;h=512365e3579e590c30e70a482d822a7ef622adc1;hp=307d5b58a0ca7578ddf079334685abc154e97183;hb=7de14af42606ea0afbb376e6f05de793108d555b;hpb=daf8076254e3e0ae562c0e27bbd2d0910e79f8d1 diff --git a/dmaap-bc/src/test/java/org/onap/dmaap/dbcapi/service/DR_NodeServiceTest.java b/dmaap-bc/src/test/java/org/onap/dmaap/dbcapi/service/DR_NodeServiceTest.java index 307d5b5..512365e 100644 --- a/dmaap-bc/src/test/java/org/onap/dmaap/dbcapi/service/DR_NodeServiceTest.java +++ b/dmaap-bc/src/test/java/org/onap/dmaap/dbcapi/service/DR_NodeServiceTest.java @@ -19,21 +19,18 @@ */ package org.onap.dmaap.dbcapi.service; -import org.onap.dmaap.dbcapi.model.*; -import org.onap.dmaap.dbcapi.testframework.DmaapObjectFactory; -import org.onap.dmaap.dbcapi.testframework.ReflectionHarness; - -import static org.junit.Assert.*; - +import java.util.List; import org.junit.After; import org.junit.Before; import org.junit.Test; -import java.util.List; +import org.onap.dmaap.dbcapi.model.ApiError; +import org.onap.dmaap.dbcapi.model.DR_Node; +import org.onap.dmaap.dbcapi.model.DcaeLocation; +import org.onap.dmaap.dbcapi.testframework.DmaapObjectFactory; +import org.onap.dmaap.dbcapi.testframework.ReflectionHarness; public class DR_NodeServiceTest { - private static final String fmt = "%24s: %s%n"; - ReflectionHarness rh = new ReflectionHarness(); static DmaapObjectFactory factory = new DmaapObjectFactory(); @@ -41,6 +38,7 @@ public class DR_NodeServiceTest { @Before public void setUp() throws Exception { + System.setProperty("ConfigFile", "src/test/resources/dmaapbc.properties"); ns = new DR_NodeService(); } @@ -51,17 +49,13 @@ public class DR_NodeServiceTest { @Test public void test1() { - - - rh.reflect( "org.onap.dmaap.dbcapi.service.DR_NodeService", "get", null ); - + rh.reflect( "org.onap.dmaap.dbcapi.service.DR_NodeService", "get", null ); } @Test public void test2() { String v = "Validate"; rh.reflect( "org.onap.dmaap.dbcapi.service.DR_NodeService", "set", v ); - } @Test @@ -88,9 +82,6 @@ public class DR_NodeServiceTest { } n2 = ns.removeDr_Node( f, err ); - } - - }