@Test public void testRenderTemplateFileSubstitutedPropertiesFromWithinTemplate() throws IOException { File file = composeTemplateXmlToFile(properties1); String result = tr.renderTemplateFile(file); assertThat(result).doesNotContain("$" + property1key); assertThat(result).doesNotContain("${" + property1key + "}"); assertThat(result).contains("$" + property2key); assertThat(result).contains("<test" + property1key + ">" + property1value + "</test" + property1key + ">"); }
public String renderTemplateFile(File templateFile, Map<String, Object> contextMap) { for (Map.Entry<String, Object> entry : contextMap.entrySet()) { renderContext.put(entry.getKey(), entry.getValue()); } return renderTemplateFile(templateFile); }
TemplateRenderer { public String renderTemplateFile(File templateFile, Map<String, Object> contextMap) { for (Map.Entry<String, Object> entry : contextMap.entrySet()) { renderContext.put(entry.getKey(), entry.getValue()); } return renderTemplateFile(templateFile); } }
TemplateRenderer { public String renderTemplateFile(File templateFile, Map<String, Object> contextMap) { for (Map.Entry<String, Object> entry : contextMap.entrySet()) { renderContext.put(entry.getKey(), entry.getValue()); } return renderTemplateFile(templateFile); } TemplateRenderer();  TemplateRenderer(Map<String, Object> initMap); }
TemplateRenderer { public String renderTemplateFile(File templateFile, Map<String, Object> contextMap) { for (Map.Entry<String, Object> entry : contextMap.entrySet()) { renderContext.put(entry.getKey(), entry.getValue()); } return renderTemplateFile(templateFile); } TemplateRenderer();  TemplateRenderer(Map<String, Object> initMap); String renderTemplateFile(File templateFile, Map<String, Object> contextMap); String renderTemplateFile(File templateFile); Optional<String> renderClassPathWorkflow(); }
TemplateRenderer { public String renderTemplateFile(File templateFile, Map<String, Object> contextMap) { for (Map.Entry<String, Object> entry : contextMap.entrySet()) { renderContext.put(entry.getKey(), entry.getValue()); } return renderTemplateFile(templateFile); } TemplateRenderer();  TemplateRenderer(Map<String, Object> initMap); String renderTemplateFile(File templateFile, Map<String, Object> contextMap); String renderTemplateFile(File templateFile); Optional<String> renderClassPathWorkflow(); static final String CLASSPATH_WORKFLOW_XML; }