@Test public void testManagementContextDefaultValue() { String templateContents = "${(missing)!\"defval\"}"; Object result = TemplateProcessor.processTemplateContents(templateContents, app, ImmutableMap.<String,Object>of()); assertEquals(result, "defval"); }
public static String processTemplateContents(String templateContents, EntityDriver driver, Map<String,? extends Object> extraSubstitutions) { return processTemplateContents(templateContents, new EntityAndMapTemplateModel(driver, extraSubstitutions)); }
TemplateProcessor { public static String processTemplateContents(String templateContents, EntityDriver driver, Map<String,? extends Object> extraSubstitutions) { return processTemplateContents(templateContents, new EntityAndMapTemplateModel(driver, extraSubstitutions)); } }
TemplateProcessor { public static String processTemplateContents(String templateContents, EntityDriver driver, Map<String,? extends Object> extraSubstitutions) { return processTemplateContents(templateContents, new EntityAndMapTemplateModel(driver, extraSubstitutions)); }  }
TemplateProcessor { public static String processTemplateContents(String templateContents, EntityDriver driver, Map<String,? extends Object> extraSubstitutions) { return processTemplateContents(templateContents, new EntityAndMapTemplateModel(driver, extraSubstitutions)); }  @Deprecated static String processTemplate(String templateFileName, Map<String, ? extends Object> substitutions); static String processTemplateFile(String templateFileName, Map<String, ? extends Object> substitutions); @Deprecated static String processTemplate(String templateFileName, EntityDriver driver, Map<String, ? extends Object> extraSubstitutions); static String processTemplateFile(String templateFileName, EntityDriver driver, Map<String, ? extends Object> extraSubstitutions); static String processTemplateContents(String templateContents, EntityDriver driver, Map<String,? extends Object> extraSubstitutions); static String processTemplateContents(String templateContents, ManagementContext managementContext, Map<String,? extends Object> extraSubstitutions); static String processTemplateContents(String templateContents, Location location, Map<String,? extends Object> extraSubstitutions); static String processTemplateContents(String templateContents, final EntityInternal entity, Map<String,? extends Object> extraSubstitutions); static String processTemplateContents(String templateContents, final Map<String, ? extends Object> substitutions); static String processTemplateContents(String templateContents, final TemplateHashModel substitutions); }
TemplateProcessor { public static String processTemplateContents(String templateContents, EntityDriver driver, Map<String,? extends Object> extraSubstitutions) { return processTemplateContents(templateContents, new EntityAndMapTemplateModel(driver, extraSubstitutions)); }  @Deprecated static String processTemplate(String templateFileName, Map<String, ? extends Object> substitutions); static String processTemplateFile(String templateFileName, Map<String, ? extends Object> substitutions); @Deprecated static String processTemplate(String templateFileName, EntityDriver driver, Map<String, ? extends Object> extraSubstitutions); static String processTemplateFile(String templateFileName, EntityDriver driver, Map<String, ? extends Object> extraSubstitutions); static String processTemplateContents(String templateContents, EntityDriver driver, Map<String,? extends Object> extraSubstitutions); static String processTemplateContents(String templateContents, ManagementContext managementContext, Map<String,? extends Object> extraSubstitutions); static String processTemplateContents(String templateContents, Location location, Map<String,? extends Object> extraSubstitutions); static String processTemplateContents(String templateContents, final EntityInternal entity, Map<String,? extends Object> extraSubstitutions); static String processTemplateContents(String templateContents, final Map<String, ? extends Object> substitutions); static String processTemplateContents(String templateContents, final TemplateHashModel substitutions);  }