*/
package org.onap.dmaap.dbcapi.model;
-import static org.junit.Assert.*;
+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;
@Before
public void setUp() throws Exception {
+ System.setProperty("ConfigFile", "src/test/resources/dmaapbc.properties");
d = "central-onap";
fqdn = "mr.onap.org";
repGrp = "zeppelin";
}
- @After
- public void tearDown() throws Exception {
- }
-
-
@Test
public void testMR_ClusterClassDefaultConstructor() {
-
MR_Cluster t = new MR_Cluster();
assertTrue( t.getDcaeLocationName() == null );
assertTrue(fqtn.contains(topic2));
}
-
-
@Test
public void testsetter() {
-
String v = "validate";
-
-
- rh.reflect( "org.onap.dmaap.dbcapi.model.MR_Cluster", "set", v );
-
+ rh.reflect( "org.onap.dmaap.dbcapi.model.MR_Cluster", "set", v );
}
}