@Test public void removeEolTest() { Assert.assertEquals(EolHelper.removeEol(LINE1), "blah"); Assert.assertEquals(EolHelper.removeEol(LINE2), "blah"); Assert.assertEquals(EolHelper.removeEol(LINE3), "blah"); }
public static String removeEol(String line) { if (line == null) { throw new IllegalArgumentException("Line argument cannot be null"); } return line.replaceAll("(\\n)|(\\r)|(\\r\\n)", ""); }
EolHelper { public static String removeEol(String line) { if (line == null) { throw new IllegalArgumentException("Line argument cannot be null"); } return line.replaceAll("(\\n)|(\\r)|(\\r\\n)", ""); } }
EolHelper { public static String removeEol(String line) { if (line == null) { throw new IllegalArgumentException("Line argument cannot be null"); } return line.replaceAll("(\\n)|(\\r)|(\\r\\n)", ""); }  }
EolHelper { public static String removeEol(String line) { if (line == null) { throw new IllegalArgumentException("Line argument cannot be null"); } return line.replaceAll("(\\n)|(\\r)|(\\r\\n)", ""); }  @SuppressFBWarnings("DM_DEFAULT_ENCODING") static String findEol(File textFile); static String findEolDefaultToOs(File textFile); static String removeEol(String line); static boolean startsWithEol(String line); static boolean endsWithEol(String line); static String getStartEol(String line); static String getEndEol(String line); }
EolHelper { public static String removeEol(String line) { if (line == null) { throw new IllegalArgumentException("Line argument cannot be null"); } return line.replaceAll("(\\n)|(\\r)|(\\r\\n)", ""); }  @SuppressFBWarnings("DM_DEFAULT_ENCODING") static String findEol(File textFile); static String findEolDefaultToOs(File textFile); static String removeEol(String line); static boolean startsWithEol(String line); static boolean endsWithEol(String line); static String getStartEol(String line); static String getEndEol(String line);  }