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%2Fmodel%2FMRClientTest.java;h=f6027a84a8cb58b50202541d72847214ff3a987f;hp=ba95a8592b40a3cee1462b8af6b13f3469cde515;hb=7de14af42606ea0afbb376e6f05de793108d555b;hpb=daf8076254e3e0ae562c0e27bbd2d0910e79f8d1 diff --git a/dmaap-bc/src/test/java/org/onap/dmaap/dbcapi/model/MRClientTest.java b/dmaap-bc/src/test/java/org/onap/dmaap/dbcapi/model/MRClientTest.java index ba95a85..f6027a8 100644 --- a/dmaap-bc/src/test/java/org/onap/dmaap/dbcapi/model/MRClientTest.java +++ b/dmaap-bc/src/test/java/org/onap/dmaap/dbcapi/model/MRClientTest.java @@ -22,23 +22,22 @@ package org.onap.dmaap.dbcapi.model; -import static org.junit.Assert.*; +import static org.junit.Assert.assertEquals; +import static org.junit.Assert.assertTrue; -import org.junit.After; import org.junit.Before; import org.junit.Test; import org.onap.dmaap.dbcapi.testframework.ReflectionHarness; public class MRClientTest { - private static final String fmt = "%24s: %s%n"; - ReflectionHarness rh = new ReflectionHarness(); String d, t, f, c, m; @Before public void setUp() throws Exception { + System.setProperty("ConfigFile", "src/test/resources/dmaapbc.properties"); d = "central-onap"; t = "org.onap.dmaap.interestingTopic"; f = "mrc.onap.org:3904/events/org.onap.dmaap.interestingTopic"; @@ -46,13 +45,8 @@ public class MRClientTest { m = "m12345"; } - @After - public void tearDown() throws Exception { - } - @Test public void test1() { - // can't use simple reflection to test for null since null constructor // initializes some fields. // rh.reflect( "org.onap.dmaap.dbcapi.model.MR_Client", "get", null ); @@ -84,7 +78,6 @@ public class MRClientTest { @Test public void test3() { - String v = "Validate"; rh.reflect("org.onap.dmaap.dbcapi.model.MR_Client", "set", v); } @@ -105,7 +98,6 @@ public class MRClientTest { assertEquals(false, mrClient.isPublisher()); assertEquals(false, mrClient.isSubscriber()); assertEquals("test", mrClient.getAction()[0]); - } }