X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Ftest%2Fjava%2Forg%2Fonap%2Fdmaap%2Fdbcapi%2Fmodel%2FMR_ClusterTest.java;h=ebe7b1edb6c04ea421a36f4beb6f4252c8b6fcfc;hb=1c6b5fa580c9b82e17b710dbc4cf9bbce57eb5bc;hp=ac7f9c43a17f1094efedb509a46caecd6873d705;hpb=503da874ce876dbe463bcc1a03f63ea0f48fe650;p=dmaap%2Fdbcapi.git diff --git a/src/test/java/org/onap/dmaap/dbcapi/model/MR_ClusterTest.java b/src/test/java/org/onap/dmaap/dbcapi/model/MR_ClusterTest.java index ac7f9c4..ebe7b1e 100644 --- a/src/test/java/org/onap/dmaap/dbcapi/model/MR_ClusterTest.java +++ b/src/test/java/org/onap/dmaap/dbcapi/model/MR_ClusterTest.java @@ -28,8 +28,9 @@ import java.lang.reflect.Method; 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(); @@ -37,7 +38,6 @@ public class MR_ClusterTest { public void setUp() throws Exception { d = "central-onap"; fqdn = "mr.onap.org"; - a = "ignore"; } @After @@ -58,10 +58,7 @@ public class MR_ClusterTest { @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 ); @@ -71,8 +68,6 @@ public class MR_ClusterTest { 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 );