/** * Tests a sequence of {@link Appendable#append(char)} calls, * with Unix line terminators mixed in. * * @throws IOException should never happen since the tests will write in a buffer. */ @Test public void testCharsWithLF() throws IOException { useSingleChars(); run("\n"); }
/** * Tests a sequence of {@link Appendable#append(char)} calls, * with CR line terminators mixed in. * * @throws IOException should never happen since the tests will write in a buffer. */ @Test @DependsOnMethod("testCharsWithLF") public void testCharsWithCR() throws IOException { useSingleChars(); run("\r"); }
/** * Tests a sequence of {@link Appendable#append(char)} calls, * with Windows line terminators mixed in. * * @throws IOException should never happen since the tests will write in a buffer. */ @Test @DependsOnMethod("testCharsWithCR") public void testCharsWithCRLF() throws IOException { useSingleChars(); run("\r\n"); }
/** * Tests a sequence of {@link Appendable#append(char)} calls, * with Unicode line terminators mixed in. * * @throws IOException should never happen since the tests will write in a buffer. */ @Test @DependsOnMethod("testCharsWithLF") public void testCharsWithUnicode() throws IOException { useSingleChars(); run("\u2028"); }