protected void assertStep(Throwing.Function<String,String> step,String unformattedPath,String expectedPath) throws Throwable {
  String unformatted=LineEnding.toUnix(getTestResource(unformattedPath));
  String formatted=step.apply(unformatted);
  Assert.assertEquals(-1,formatted.indexOf('\r'));
  String expected=LineEnding.toUnix(getTestResource(expectedPath));
  Assert.assertEquals(expected,formatted);
}

protected void assertStep ( Throwing . Function < String , String > step , String unformattedPath , String expectedPath ) throws Throwable { String unformatted = LineEnding . toUnix ( getTestResource ( unformattedPath ) ) ; String formatted = step . apply ( unformatted ) ; Assert . assertEquals ( - 1 , formatted . indexOf ( '\r' ) ) ; String expected = LineEnding . toUnix ( getTestResource ( expectedPath ) ) ; Assert . assertEquals ( expected , formatted ) ; }
reads the given resource from " before " , applies the step , and makes sure the result is " after " .
