X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=dmaap-bc%2Fsrc%2Ftest%2Fjava%2Forg%2Fonap%2Fdmaap%2Fdbcapi%2Fservice%2FMR_ClientServiceTest.java;h=aa5dd6dd213cc5d1fbaa3fc55a91fe627b336cdb;hb=416b2dc08822fafed6f94a3becdfbda37d21dcbe;hp=e80697a3b2c4c8fe11398281e925e5451e8edc97;hpb=71d3d0925874247de5e657821638b1c08360f571;p=dmaap%2Fbuscontroller.git diff --git a/dmaap-bc/src/test/java/org/onap/dmaap/dbcapi/service/MR_ClientServiceTest.java b/dmaap-bc/src/test/java/org/onap/dmaap/dbcapi/service/MR_ClientServiceTest.java index e80697a..aa5dd6d 100644 --- a/dmaap-bc/src/test/java/org/onap/dmaap/dbcapi/service/MR_ClientServiceTest.java +++ b/dmaap-bc/src/test/java/org/onap/dmaap/dbcapi/service/MR_ClientServiceTest.java @@ -22,8 +22,6 @@ package org.onap.dmaap.dbcapi.service; import static org.junit.Assert.assertTrue; import java.util.List; - -import org.junit.After; import org.junit.Before; import org.junit.Test; import org.onap.dmaap.dbcapi.model.ApiError; @@ -36,8 +34,6 @@ import org.onap.dmaap.dbcapi.testframework.ReflectionHarness; public class MR_ClientServiceTest { - private static final String fmt = "%24s: %s%n"; - private static DmaapObjectFactory factory = new DmaapObjectFactory(); ReflectionHarness rh = new ReflectionHarness(); @@ -52,6 +48,7 @@ public class MR_ClientServiceTest { @Before public void setUp() throws Exception { + System.setProperty("ConfigFile", "src/test/resources/dmaapbc.properties"); ts = new TopicService(); mcs = new MR_ClusterService(); cls = new MR_ClientService(); @@ -68,24 +65,15 @@ public class MR_ClientServiceTest { MR_Cluster n2 = mcs.addMr_Cluster( node, err ); } - @After - public void tearDown() throws Exception { - } - - @Test public void test1() { - - - rh.reflect( "org.onap.dmaap.dbcapi.service.MR_ClientService", "get", null ); - + rh.reflect( "org.onap.dmaap.dbcapi.service.MR_ClientService", "get", null ); } @Test public void test2() { String v = "Validate"; rh.reflect( "org.onap.dmaap.dbcapi.service.MR_ClientService", "set", v ); - } @Test @@ -129,7 +117,5 @@ public class MR_ClientServiceTest { c = cls.addMr_Client( c, topic, err ); assertTrue( err.getCode() == 200 ); - } - }