Upgrade to Thymeleaf 3.0.6.RELEASE

Closes gh-9207
This commit is contained in:
Andy Wilkinson
2017-05-12 10:55:20 +01:00
parent ce3aa1d46e
commit f24b55a236
4 changed files with 4 additions and 4 deletions

View File

@@ -68,7 +68,7 @@ public class ThymeleafReactiveAutoConfigurationTests {
@Test
public void createFromConfigClass() throws Exception {
load(BaseConfiguration.class, "spring.thymeleaf.suffix:.txt");
load(BaseConfiguration.class, "spring.thymeleaf.suffix:.html");
TemplateEngine engine = this.context.getBean(TemplateEngine.class);
Context attrs = new Context(Locale.UK, Collections.singletonMap("foo", "bar"));
String result = engine.process("template", attrs);

View File

@@ -76,11 +76,11 @@ public class ThymeleafServletAutoConfigurationTests {
@Test
public void createFromConfigClass() throws Exception {
load(BaseConfiguration.class, "spring.thymeleaf.mode:XHTML",
load(BaseConfiguration.class, "spring.thymeleaf.mode:HTML",
"spring.thymeleaf.suffix:");
TemplateEngine engine = this.context.getBean(TemplateEngine.class);
Context attrs = new Context(Locale.UK, Collections.singletonMap("foo", "bar"));
String result = engine.process("template.txt", attrs);
String result = engine.process("template.html", attrs);
assertThat(result).isEqualTo("<html>bar</html>");
}