void () { assertNull(StringUtil.detectSeparators("")); assertNull(StringUtil.detectSeparators("asd")); assertNull(StringUtil.detectSeparators("asd\t")); assertEquals(LineSeparator.LF, StringUtil.detectSeparators("asd\n")); assertEquals(LineSeparator.LF, StringUtil.detectSeparators("asd\nads\r")); assertEquals(LineSeparator.LF, StringUtil.detectSeparators("asd\nads\n")); assertEquals(LineSeparator.CR, StringUtil.detectSeparators("asd\r")); assertEquals(LineSeparator.CR, StringUtil.detectSeparators("asd\rads\r")); assertEquals(LineSeparator.CR, StringUtil.detectSeparators("asd\rads\n")); assertEquals(LineSeparator.CRLF, StringUtil.detectSeparators("asd\r\n")); assertEquals(LineSeparator.CRLF, StringUtil.detectSeparators("asd\r\nads\r")); assertEquals(LineSeparator.CRLF, StringUtil.detectSeparators("asd\r\nads\n")); }