I\'m facing the following scenario:
I have an app that spits everything out to the STDOUT (simple company test) and I\'m trying to JUnit this.
My problem is,
You can use AssertJ "isEqualToNormalizingNewline" as in:
import static org.assertj.core.api.Assertions.assertThat; ... @Test public void ingoreLineEndingCharacterTest() { assertThat("First Line\nSecond Line\n").isEqualToNormalizingNewlines("First Line\r\nSecond Line\r\n"); }