import org.junit.After;
import org.junit.Before;
import org.junit.Test;
+import org.onap.dmaap.dbcapi.testframework.ReflectionHarness;
public class MR_ClusterTest {
- String d, fqdn, a;
+ String d, fqdn;
ReflectionHarness rh = new ReflectionHarness();
public void setUp() throws Exception {
d = "central-onap";
fqdn = "mr.onap.org";
- a = "ignore";
}
@After
@Test
public void testMR_ClusterClassConstructor() {
- String[] h = { "host1", "host2", "host3" };
- MR_Cluster t = new MR_Cluster( d, fqdn, a, h );
-
- t.getHosts();
+ MR_Cluster t = new MR_Cluster( d, fqdn, "http", "3904");
assertTrue( t.getDcaeLocationName() == d );
assertTrue( t.getFqdn() == fqdn );
public void testw3() {
MR_Cluster t = new MR_Cluster();
- String[] h = { "host1", "host2", "host3" };
- t.setHosts( h );
assertTrue( t.getDcaeLocationName() == null );
assertTrue( t.getFqdn() == null );