From 94cf1beebaa4dd3c4c5382e09f2dfa286d0920de Mon Sep 17 00:00:00 2001 From: Matt Burgess Date: Thu, 17 Mar 2016 13:46:53 -0400 Subject: [PATCH] NIFI-901: Fixed unit test to verify IP address of Cassandra contact point This closes #286 Signed-off-by: Matt Gilman --- .../processors/cassandra/AbstractCassandraProcessorTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nifi-nar-bundles/nifi-cassandra-bundle/nifi-cassandra-processors/src/test/java/org/apache/nifi/processors/cassandra/AbstractCassandraProcessorTest.java b/nifi-nar-bundles/nifi-cassandra-bundle/nifi-cassandra-processors/src/test/java/org/apache/nifi/processors/cassandra/AbstractCassandraProcessorTest.java index b2760fbec1..1f62997dcf 100644 --- a/nifi-nar-bundles/nifi-cassandra-bundle/nifi-cassandra-processors/src/test/java/org/apache/nifi/processors/cassandra/AbstractCassandraProcessorTest.java +++ b/nifi-nar-bundles/nifi-cassandra-bundle/nifi-cassandra-processors/src/test/java/org/apache/nifi/processors/cassandra/AbstractCassandraProcessorTest.java @@ -175,13 +175,13 @@ public class AbstractCassandraProcessorTest { contactPoints = processor.getContactPoints("192.168.99.100:9042"); assertNotNull(contactPoints); assertEquals(1, contactPoints.size()); - assertEquals("192.168.99.100", contactPoints.get(0).getHostName()); + assertEquals("192.168.99.100", contactPoints.get(0).getAddress().getHostAddress()); assertEquals(9042, contactPoints.get(0).getPort()); contactPoints = processor.getContactPoints("192.168.99.100:9042, mydomain.com : 4000"); assertNotNull(contactPoints); assertEquals(2, contactPoints.size()); - assertEquals("192.168.99.100", contactPoints.get(0).getHostName()); + assertEquals("192.168.99.100", contactPoints.get(0).getAddress().getHostAddress()); assertEquals(9042, contactPoints.get(0).getPort()); assertEquals("mydomain.com", contactPoints.get(1).getHostName()); assertEquals(4000, contactPoints.get(1).getPort());