AMBARI-22253. Fix compile error in RequiredConfigPropertiesValidatorTest 
(adoroszlai)


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

Branch: refs/heads/branch-feature-AMBARI-14714-blueprintv2
Commit: f12e9c9c32d3f24ef19dad69eacc7de33cfd7046
Parents: e8916e5
Author: Doroszlai, Attila <adorosz...@hortonworks.com>
Authored: Wed Dec 6 12:13:29 2017 +0100
Committer: Doroszlai, Attila <adorosz...@hortonworks.com>
Committed: Fri Dec 8 20:24:25 2017 +0100

----------------------------------------------------------------------
 .../validators/RequiredConfigPropertiesValidatorTest.java       | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/f12e9c9c/ambari-server/src/test/java/org/apache/ambari/server/topology/validators/RequiredConfigPropertiesValidatorTest.java
----------------------------------------------------------------------
diff --git 
a/ambari-server/src/test/java/org/apache/ambari/server/topology/validators/RequiredConfigPropertiesValidatorTest.java
 
b/ambari-server/src/test/java/org/apache/ambari/server/topology/validators/RequiredConfigPropertiesValidatorTest.java
index f6b4ec8..36f90a9 100644
--- 
a/ambari-server/src/test/java/org/apache/ambari/server/topology/validators/RequiredConfigPropertiesValidatorTest.java
+++ 
b/ambari-server/src/test/java/org/apache/ambari/server/topology/validators/RequiredConfigPropertiesValidatorTest.java
@@ -26,6 +26,7 @@ import org.apache.ambari.server.controller.StackV2;
 import org.apache.ambari.server.topology.BlueprintV2;
 import org.apache.ambari.server.topology.ClusterTopology;
 import org.apache.ambari.server.topology.Configuration;
+import org.apache.ambari.server.topology.HostGroupV2;
 import org.apache.ambari.server.topology.HostGroupV2Impl;
 import org.apache.ambari.server.topology.InvalidTopologyException;
 import org.apache.ambari.server.topology.Service;
@@ -81,7 +82,7 @@ public class RequiredConfigPropertiesValidatorTest extends 
EasyMockSupport {
   private Collection<String> bpServices = new HashSet<>();
   private Collection<Service> slaveHostGroupServices = new HashSet<>();
   private Collection<Service> masterHostGroupServices = new HashSet<>();
-  private Map<String, HostGroupV2Impl> hostGroups = new HashMap<>();
+  private Map<String, HostGroupV2> hostGroups = new HashMap<>();
 
   private Map<String, Collection<String>> missingProps = new TreeMap<>();
 
@@ -103,7 +104,7 @@ public class RequiredConfigPropertiesValidatorTest extends 
EasyMockSupport {
 
     
EasyMock.expect(clusterTopologyMock.getBlueprint()).andReturn(blueprintMock).anyTimes();
 
-    EasyMock.expect((Map<String, 
HostGroupV2Impl>)blueprintMock.getHostGroups()).andReturn(hostGroups);
+    EasyMock.expect(blueprintMock.getHostGroups()).andReturn(hostGroups);
 
     
EasyMock.expect(masterHostGroupMock.getName()).andReturn("master").anyTimes();
     
EasyMock.expect(masterHostGroupMock.getConfiguration()).andReturn(masterHostGroupConfigurationMock).anyTimes();

Reply via email to