Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,12 @@ public void get_GivesThePaidMessageAndFindOutMore() {
@Test
public void page_LabelsEachValueAndEndsWithFindOutMore()
throws IOException {
// A checkout on Windows can end each line with \r\n, so the lines
// are compared with \n alone.
String page = new String(Files.readAllBytes(Paths.get(
System.getProperty("basedir", "."),
"src/main/webapp/WEB-INF/views/example.jsp")),
StandardCharsets.UTF_8);
StandardCharsets.UTF_8).replace("\r\n", "\n");
assertTrue(page, page.contains("<dt><strong>Country</strong></dt>\n" +
" <dv>${country}</dv>"));
assertTrue(page, page.contains("<dt><strong>County</strong></dt>\n" +
Expand Down
Loading