@Test public void startsWithEolTest() { Assert.assertFalse(EolHelper.startsWithEol(LINE1)); Assert.assertTrue(EolHelper.startsWithEol(LINE2)); Assert.assertFalse(EolHelper.startsWithEol(LINE3)); }
public static boolean startsWithEol(String line) { if (line == null) { throw new IllegalArgumentException("Line argument cannot be null"); } return line.startsWith("\n") || line.startsWith("\r"); }
EolHelper { public static boolean startsWithEol(String line) { if (line == null) { throw new IllegalArgumentException("Line argument cannot be null"); } return line.startsWith("\n") || line.startsWith("\r"); } }
EolHelper { public static boolean startsWithEol(String line) { if (line == null) { throw new IllegalArgumentException("Line argument cannot be null"); } return line.startsWith("\n") || line.startsWith("\r"); }  }
EolHelper { public static boolean startsWithEol(String line) { if (line == null) { throw new IllegalArgumentException("Line argument cannot be null"); } return line.startsWith("\n") || line.startsWith("\r"); }  @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 boolean startsWithEol(String line) { if (line == null) { throw new IllegalArgumentException("Line argument cannot be null"); } return line.startsWith("\n") || line.startsWith("\r"); }  @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);  }