From 1c6b5fa580c9b82e17b710dbc4cf9bbce57eb5bc Mon Sep 17 00:00:00 2001 From: dglFromAtt Date: Thu, 19 Apr 2018 18:06:04 -0400 Subject: Fix cluster object to use http port Change-Id: I8cf3f4caf4701be7fd95bb35f94f75592d7b4c05 Signed-off-by: dglFromAtt Issue-ID: DMAAP-295 --- src/test/java/org/onap/dmaap/dbcapi/model/MR_ClusterTest.java | 4 ---- .../java/org/onap/dmaap/dbcapi/resources/MR_ClusterResourceTest.java | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) (limited to 'src/test') 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 df102e3..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 @@ -59,8 +59,6 @@ public class MR_ClusterTest { public void testMR_ClusterClassConstructor() { MR_Cluster t = new MR_Cluster( d, fqdn, "http", "3904"); - - t.getHosts(); assertTrue( t.getDcaeLocationName() == d ); assertTrue( t.getFqdn() == fqdn ); @@ -70,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 ); diff --git a/src/test/java/org/onap/dmaap/dbcapi/resources/MR_ClusterResourceTest.java b/src/test/java/org/onap/dmaap/dbcapi/resources/MR_ClusterResourceTest.java index 4d4c731..2ff17d8 100644 --- a/src/test/java/org/onap/dmaap/dbcapi/resources/MR_ClusterResourceTest.java +++ b/src/test/java/org/onap/dmaap/dbcapi/resources/MR_ClusterResourceTest.java @@ -111,7 +111,7 @@ public class MR_ClusterResourceTest extends JerseyTest { } // now change a field - cluster.setHosts( h ); + reqEntity = Entity.entity( cluster, MediaType.APPLICATION_JSON ); // update with incorrect key -- cgit 1.2.3-korg