X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=dmaap-bc%2Fsrc%2Ftest%2Fjava%2Forg%2Fonap%2Fdmaap%2Fdbcapi%2Futil%2FDmaapConfigTest.java;h=9b097e74b3772366dd869964b1f36e875bc01e6a;hb=7de14af42606ea0afbb376e6f05de793108d555b;hp=6ef05c0d8c17db1a5044a641467160b734404e2b;hpb=71d3d0925874247de5e657821638b1c08360f571;p=dmaap%2Fbuscontroller.git diff --git a/dmaap-bc/src/test/java/org/onap/dmaap/dbcapi/util/DmaapConfigTest.java b/dmaap-bc/src/test/java/org/onap/dmaap/dbcapi/util/DmaapConfigTest.java index 6ef05c0..9b097e7 100644 --- a/dmaap-bc/src/test/java/org/onap/dmaap/dbcapi/util/DmaapConfigTest.java +++ b/dmaap-bc/src/test/java/org/onap/dmaap/dbcapi/util/DmaapConfigTest.java @@ -19,54 +19,34 @@ */ package org.onap.dmaap.dbcapi.util; -import org.onap.dmaap.dbcapi.testframework.ReflectionHarness; - -import static org.junit.Assert.*; - -import org.junit.After; import org.junit.Before; import org.junit.Test; +import org.onap.dmaap.dbcapi.testframework.ReflectionHarness; public class DmaapConfigTest { - private static final String fmt = "%24s: %s%n"; - ReflectionHarness rh = new ReflectionHarness(); - DmaapConfig g; - - @Before public void setUp() throws Exception { + System.setProperty("ConfigFile", "src/test/resources/dmaapbc.properties"); } - @After - public void tearDown() throws Exception { - } - - @Test public void test1() { - - - rh.reflect( "org.onap.dmaap.dbcapi.util.DmaapConfig", "get", "" ); - + rh.reflect( "org.onap.dmaap.dbcapi.util.DmaapConfig", "get", "" ); } @Test public void test2() { String v = "Validate"; rh.reflect( "org.onap.dmaap.dbcapi.util.DmaapConfig", "set", v ); - } @Test public void test3() { - - String f = g.getConfigFileName(); + DmaapConfig.getConfigFileName(); + DmaapConfig.getSSLSocketFactory(); } - - - }