Skip to content

Commit

Permalink
Merge pull request #300 from diffplug/feature/windowsEclipseCommonTests
Browse files Browse the repository at this point in the history
EclipseCommonTests are no longer sensitive to line-ending problems.
  • Loading branch information
nedtwigg authored Sep 12, 2018
2 parents 4257fee + 726094b commit a2fe993
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import org.junit.Test;

import com.diffplug.spotless.FormatterStep;
import com.diffplug.spotless.LineEnding;
import com.diffplug.spotless.ResourceHarness;

/**
Expand Down Expand Up @@ -78,7 +79,7 @@ public void testSupportedVersions() throws Exception {
}
String output = null;
try {
output = step.format(input, inputFile);
output = LineEnding.toUnix(step.format(input, inputFile));
} catch (Exception e) {
fail("Exception occured when formatting input with version: " + version, e);
}
Expand Down

0 comments on commit a2fe993

Please sign in to comment.