summaryrefslogtreecommitdiffstats
path: root/src/test
diff options
context:
space:
mode:
authordglFromAtt <dgl@research.att.com>2018-04-19 18:06:04 -0400
committerdglFromAtt <dgl@research.att.com>2018-04-19 18:06:12 -0400
commit1c6b5fa580c9b82e17b710dbc4cf9bbce57eb5bc (patch)
tree62e221cb2b9151f995759ee4a4402d79af00c9df /src/test
parentac03a4b32eae987019cec2cd39d6d252fb320c2f (diff)
Fix cluster object to use http port
Change-Id: I8cf3f4caf4701be7fd95bb35f94f75592d7b4c05 Signed-off-by: dglFromAtt <dgl@research.att.com> Issue-ID: DMAAP-295
Diffstat (limited to 'src/test')
-rw-r--r--src/test/java/org/onap/dmaap/dbcapi/model/MR_ClusterTest.java4
-rw-r--r--src/test/java/org/onap/dmaap/dbcapi/resources/MR_ClusterResourceTest.java2
2 files changed, 1 insertions, 5 deletions
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