@Test public void testGetName() throws Exception { Cluster cluster = createNiceMock(Cluster.class); expect(cluster.getClusterName()).andReturn("c1").anyTimes(); replay(cluster); ClusterImpl clusterImpl = new ClusterImpl(cluster); Assert.assertEquals("c1", clusterImpl.getName()); verify(cluster); }
@Override public String getName() { return cluster.getClusterName(); }
ClusterImpl implements Cluster { @Override public String getName() { return cluster.getClusterName(); } }
ClusterImpl implements Cluster { @Override public String getName() { return cluster.getClusterName(); } ClusterImpl(org.apache.ambari.server.state.Cluster cluster); }
ClusterImpl implements Cluster { @Override public String getName() { return cluster.getClusterName(); } ClusterImpl(org.apache.ambari.server.state.Cluster cluster); @Override String getName(); @Override String getConfigurationValue(String type, String key); @Override Map<String, String> getConfigByType(String type); @Override List<String> getHostsForServiceComponent(String serviceName, String componentName); }
ClusterImpl implements Cluster { @Override public String getName() { return cluster.getClusterName(); } ClusterImpl(org.apache.ambari.server.state.Cluster cluster); @Override String getName(); @Override String getConfigurationValue(String type, String key); @Override Map<String, String> getConfigByType(String type); @Override List<String> getHostsForServiceComponent(String serviceName, String componentName);  }