22042205220622072208220922102211221222132214
@Test public void fReadLine_void() throws Exception { try { Stream stream = new Stream(); stream.readLine(); fail(); } catch (EOFException ex) { } try {
22122213221422152216221722182219222022212222
} try { Stream stream = new Stream(); stream.writeBit(1); stream.readLine(); fail(); } catch (InsufficientBufferException ex) { } try {
21912192219321942195219621972198219922002201
stream.writeBit(1); stream.readBit(); for (int i = 0; i < 5; i++) { assertEquals(template, stream.readLine()); } assertEquals("", stream.readLine()); assertEquals(1, stream.getData().readable()); } finally {
21942195219621972198219922002201220222032204
for (int i = 0; i < 5; i++) { assertEquals(template, stream.readLine()); } assertEquals("", stream.readLine()); assertEquals(1, stream.getData().readable()); } finally { } }