@Test public void shouldNotDoAnythingOnNonYcloud() { Stack stack = new Stack(); stack.setCloudPlatform(CloudPlatform.AWS.name()); ApiRoleList apiRoleList = new ApiRoleList(); underTest.setConfigs(stack, apiRoleList); assertThat(apiRoleList.getItems()).isNullOrEmpty(); }
@Override public void setConfigs(Stack stack, ApiRoleList apiRoleList) { if (CloudPlatform.YARN.equalsIgnoreCase(stack.getCloudPlatform())) { apiRoleList.getItems().forEach(this::addSuppressionConfigs); } }
CmMgmtYarnConfigService implements CmConfigServiceDelegate { @Override public void setConfigs(Stack stack, ApiRoleList apiRoleList) { if (CloudPlatform.YARN.equalsIgnoreCase(stack.getCloudPlatform())) { apiRoleList.getItems().forEach(this::addSuppressionConfigs); } } }
CmMgmtYarnConfigService implements CmConfigServiceDelegate { @Override public void setConfigs(Stack stack, ApiRoleList apiRoleList) { if (CloudPlatform.YARN.equalsIgnoreCase(stack.getCloudPlatform())) { apiRoleList.getItems().forEach(this::addSuppressionConfigs); } }  }
CmMgmtYarnConfigService implements CmConfigServiceDelegate { @Override public void setConfigs(Stack stack, ApiRoleList apiRoleList) { if (CloudPlatform.YARN.equalsIgnoreCase(stack.getCloudPlatform())) { apiRoleList.getItems().forEach(this::addSuppressionConfigs); } }  @Override void setConfigs(Stack stack, ApiRoleList apiRoleList); }
CmMgmtYarnConfigService implements CmConfigServiceDelegate { @Override public void setConfigs(Stack stack, ApiRoleList apiRoleList) { if (CloudPlatform.YARN.equalsIgnoreCase(stack.getCloudPlatform())) { apiRoleList.getItems().forEach(this::addSuppressionConfigs); } }  @Override void setConfigs(Stack stack, ApiRoleList apiRoleList);  }