*/
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();
}
-
-
-
}