Skip to content

Commit

Permalink
#327 Update Freemarker
Browse files Browse the repository at this point in the history
  • Loading branch information
Igor Polevoy committed Feb 13, 2017
1 parent fdc3f3d commit ec8aabc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -228,13 +228,10 @@ public void shouldSend404IfTemplateIsMissing() throws ServletException, IOExcept

dispatcher.doFilter(request, response, filterChain);

System.out.println(getSystemErr());
a(getSystemErr().contains("Template \"/hello/no-view.ftl\" not found.")).shouldBeTrue();

a(getSystemErr().contains("Template not found for name \"/hello/no-view.ftl")).shouldBeTrue();
String html = response.getContentAsString();

a(XPathHelper.count("//div", html)).shouldBeEqual(3);
a(XPathHelper.selectText("//div[@id='content']", html)).shouldBeEqual("Failed to render template: 'src/test/views/hello/no-view.ftl', with layout: 'src/test/views/layouts/default_layout'; Template \"/hello/no-view.ftl\" not found.");
a(XPathHelper.selectText("//div[@id='content']", html)).shouldContain("Failed to render template: 'src/test/views/hello/no-view.ftl', with layout: 'src/test/views/layouts/default_layout'; Template not found for name \"/hello/no-view.ftl\"");
}

@Test
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
<dependency>
<groupId>org.freemarker</groupId>
<artifactId>freemarker</artifactId>
<version>2.3.20</version>
<version>2.3.25-incubating</version>
</dependency>
<dependency>
<groupId>dom4j</groupId>
Expand Down

0 comments on commit ec8aabc

Please sign in to comment.