From abed1f4d4cb7b35a9117e5aa77cec8ce011f74e7 Mon Sep 17 00:00:00 2001 From: Phillip Webb Date: Thu, 25 Sep 2014 10:41:12 -0700 Subject: [PATCH] Restore ThymeleafAutoConfiguration test Restore the test removed during the merge. --- .../thymeleaf/ThymeleafAutoConfigurationTests.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/thymeleaf/ThymeleafAutoConfigurationTests.java b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/thymeleaf/ThymeleafAutoConfigurationTests.java index 81a4f0a55b5..b28ff65c1a3 100644 --- a/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/thymeleaf/ThymeleafAutoConfigurationTests.java +++ b/spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/thymeleaf/ThymeleafAutoConfigurationTests.java @@ -140,6 +140,17 @@ public class ThymeleafAutoConfigurationTests { context.close(); } + @Test + public void useDataDialect() throws Exception { + this.context.register(ThymeleafAutoConfiguration.class, + PropertyPlaceholderAutoConfiguration.class); + this.context.refresh(); + TemplateEngine engine = this.context.getBean(TemplateEngine.class); + Context attrs = new Context(Locale.UK, Collections.singletonMap("foo", "bar")); + String result = engine.process("data-dialect", attrs); + assertEquals("", result); + } + @Test public void renderTemplate() throws Exception { this.context.register(ThymeleafAutoConfiguration.class,