@Test public void getCmTemplateWithoutHosts() { when(blueprintView.getBlueprintText()).thenReturn(getBlueprintText("input/clouderamanager-without-hosts.bp")); String generated = generator.getBlueprintText(templatePreparationObject); Assert.assertEquals(new CmTemplateProcessor(getBlueprintText("output/clouderamanager-without-hosts.bp")).getTemplate().toString(), new CmTemplateProcessor(generated).getTemplate().toString()); }
@Override public String getBlueprintText(TemplatePreparationObject source) { ApiClusterTemplate template = getCmTemplate(source, Map.of(), null, null, null); return JsonUtil.writeValueAsStringSilent(template); }
CentralCmTemplateUpdater implements BlueprintUpdater { @Override public String getBlueprintText(TemplatePreparationObject source) { ApiClusterTemplate template = getCmTemplate(source, Map.of(), null, null, null); return JsonUtil.writeValueAsStringSilent(template); } }
CentralCmTemplateUpdater implements BlueprintUpdater { @Override public String getBlueprintText(TemplatePreparationObject source) { ApiClusterTemplate template = getCmTemplate(source, Map.of(), null, null, null); return JsonUtil.writeValueAsStringSilent(template); }  }
CentralCmTemplateUpdater implements BlueprintUpdater { @Override public String getBlueprintText(TemplatePreparationObject source) { ApiClusterTemplate template = getCmTemplate(source, Map.of(), null, null, null); return JsonUtil.writeValueAsStringSilent(template); }  ApiClusterTemplate getCmTemplate(TemplatePreparationObject source, Map<String, List<Map<String, String>>> hostGroupMappings,
            ClouderaManagerRepo clouderaManagerRepoDetails, List<ClouderaManagerProduct> clouderaManagerProductDetails, String sdxContextName); CmTemplateProcessor getCmTemplateProcessor(TemplatePreparationObject source); @Override String getBlueprintText(TemplatePreparationObject source); @Override String getVariant(); }
CentralCmTemplateUpdater implements BlueprintUpdater { @Override public String getBlueprintText(TemplatePreparationObject source) { ApiClusterTemplate template = getCmTemplate(source, Map.of(), null, null, null); return JsonUtil.writeValueAsStringSilent(template); }  ApiClusterTemplate getCmTemplate(TemplatePreparationObject source, Map<String, List<Map<String, String>>> hostGroupMappings,
            ClouderaManagerRepo clouderaManagerRepoDetails, List<ClouderaManagerProduct> clouderaManagerProductDetails, String sdxContextName); CmTemplateProcessor getCmTemplateProcessor(TemplatePreparationObject source); @Override String getBlueprintText(TemplatePreparationObject source); @Override String getVariant();  }