@Test public void testDotSeparatedKeyCollisionFailure() { String templateContents = "${aaa.bbb}"; try { TemplateProcessor.processTemplateContents(templateContents, (ManagementContextInternal)null, ImmutableMap.<String,Object>of("aaa.bbb", "myval", "aaa", "blocker")); Assert.fail("Should not have found value with intermediate dot where prefix is overridden"); } catch (Exception e) { Assert.assertTrue(e.toString().contains("aaa"), "Should have mentioned missing key 'aaa' in error"); } }
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);  }