joel-costigliola/assertj-core — pull request #208 by kriegfrj (2014-05-23 05:28:50+00:00)
Title: Fix for Files.contentOf test under Windows

Had an issue running the tests under Windows - Files+contentOf_Test was failing. I tracked this down to the use of "System.getProperty("line.separator")" in the expectedContent setting. The sample file contains "\n" as the line separator and the test originally used the system line separator setting for the expected file contents. This worked on Unix because the system line separator property is "\n" (which matches the file), but on Windows the system line separator is "\r\n" so it doesn't match the file which still has "\n".

Explicitly specifying "\n" rather than using the system property seems to be the best solution to the problem.