Skip to content

Commit

Permalink
Fix the failing test on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
evrignaud committed Apr 22, 2016
1 parent f993194 commit 8717710
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/test/java/org/fim/model/CompareResultTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
*/
package org.fim.model;

import static java.lang.System.lineSeparator;
import static org.assertj.core.api.Assertions.*;
import static org.fim.model.CompareResult.addSeparator;
import static org.fim.model.CompareResult.displayDifferences;
Expand All @@ -37,6 +38,7 @@
import org.fim.tooling.StateAssert;
import org.junit.Before;
import org.junit.Test;
import org.junit.contrib.java.lang.system.SystemErrRule;

public class CompareResultTest extends StateAssert
{
Expand Down Expand Up @@ -153,6 +155,6 @@ public void displayDifferencesTest()
context.setTruncateOutput(2);
displayDifferences(printStream, context, actionStr, differences, differenceConsumer);
assertThat(called.get()).isEqualTo(true);
assertThat(outputStream.toString()).isEqualTo(" [Too many lines. Truncating the output] ...\naction: 1 file more\n");
assertThat(outputStream.toString()).isEqualTo(" [Too many lines. Truncating the output] ..." + lineSeparator() + "action: 1 file more" + lineSeparator());
}
}

0 comments on commit 8717710

Please sign in to comment.