AMBARI-22253. Fix compile error after rebase (adoroszlai)

Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/9b95bb1a
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/9b95bb1a
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/9b95bb1a

Branch: refs/heads/branch-feature-AMBARI-14714-blueprintv2
Commit: 9b95bb1a28476dd489b72325f430edb27a8c2b28
Parents: 3b57e54
Author: Doroszlai, Attila <adorosz...@hortonworks.com>
Authored: Fri Nov 24 13:39:17 2017 +0100
Committer: Doroszlai, Attila <adorosz...@hortonworks.com>
Committed: Fri Dec 8 20:24:25 2017 +0100

----------------------------------------------------------------------
 .../org/apache/ambari/server/topology/AmbariContextTest.java    | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/9b95bb1a/ambari-server/src/test/java/org/apache/ambari/server/topology/AmbariContextTest.java
----------------------------------------------------------------------
diff --git 
a/ambari-server/src/test/java/org/apache/ambari/server/topology/AmbariContextTest.java
 
b/ambari-server/src/test/java/org/apache/ambari/server/topology/AmbariContextTest.java
index 16de535..b438d86 100644
--- 
a/ambari-server/src/test/java/org/apache/ambari/server/topology/AmbariContextTest.java
+++ 
b/ambari-server/src/test/java/org/apache/ambari/server/topology/AmbariContextTest.java
@@ -81,7 +81,6 @@ import org.junit.After;
 import org.junit.Before;
 import org.junit.Test;
 
-import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
 import com.google.common.collect.ImmutableSet;
 
@@ -129,7 +128,7 @@ public class AmbariContextTest {
   private static final Map<Long, ConfigGroup> configGroups = new HashMap<>();
   private Configuration bpConfiguration = null;
   private Configuration group1Configuration = null;
-  private static final Collection<String> group1Hosts = Arrays.asList(HOST1, 
HOST2);
+  private static final Set<String> group1Hosts = ImmutableSet.of(HOST1, HOST2);
 
   private Capture<Set<ConfigGroupRequest>> configGroupRequestCapture = 
EasyMock.newCapture();
 
@@ -485,7 +484,7 @@ public class AmbariContextTest {
 
     reset(group1Info);
     
expect(group1Info.getConfiguration()).andReturn(group1Configuration).anyTimes();
-    Collection<String> groupHosts = ImmutableList.of(HOST1, HOST2, 
"pending_host"); // pending_host is not registered with the cluster
+    Set<String> groupHosts = ImmutableSet.of(HOST1, HOST2, "pending_host"); // 
pending_host is not registered with the cluster
     expect(group1Info.getHostNames()).andReturn(groupHosts).anyTimes(); // 
there are 3 hosts for the host group
     // replay all mocks
     replayAll();

Reply via email to