diff --git a/location/geo-location.web.examples/geo-location.web.examples.mvc/src/test/java/fiftyone/geolocation/web/examples/mvc/controller/ExampleControllerTests.java b/location/geo-location.web.examples/geo-location.web.examples.mvc/src/test/java/fiftyone/geolocation/web/examples/mvc/controller/ExampleControllerTests.java index 9f7e3acf0..6b437553e 100644 --- a/location/geo-location.web.examples/geo-location.web.examples.mvc/src/test/java/fiftyone/geolocation/web/examples/mvc/controller/ExampleControllerTests.java +++ b/location/geo-location.web.examples/geo-location.web.examples.mvc/src/test/java/fiftyone/geolocation/web/examples/mvc/controller/ExampleControllerTests.java @@ -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("