/** * Tests a few {@link java.io.Writer#write(String)} calls, * with Unix line terminators in the sequences. * * @throws IOException should never happen since the tests will write in a buffer. */ public void testSequencesToWriter() throws IOException { appender = IO.asWriter(appender); run("\n"); } }
/** * Tests a few {@link Appendable#append(CharSequence)} calls, * with CR line terminators in the sequences. * * @throws IOException should never happen since the tests will write in a buffer. */ @Test @DependsOnMethod("testCharsWithCR") public void testSequencesWithCR() throws IOException { run("\r"); }
/** * Tests a few {@link Appendable#append(CharSequence)} calls, * with Windows line terminators in the sequences. * * @throws IOException should never happen since the tests will write in a buffer. */ @Test @DependsOnMethod("testCharsWithCRLF") public void testSequencesWithCRLF() throws IOException { run("\r\n"); }
/** * 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 few {@link Appendable#append(CharSequence)} calls, * with Unicode line terminators in the sequences. * * @throws IOException should never happen since the tests will write in a buffer. */ @Test @DependsOnMethod("testCharsWithUnicode") public void testSequencesWithUnicode() throws IOException { run("\u2028"); }
/** * Tests a few {@link Appendable#append(CharSequence)} calls, * with Unix line terminators in the sequences. * * @throws IOException should never happen since the tests will write in a buffer. */ @Test @DependsOnMethod("testCharsWithLF") public void testSequencesWithLF() throws IOException { 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"); }