11651166116711681169117011711172117311741175
stream.writeBit(1); stream.readBit(); for (int i = 0; i < sampleChars().length; i++) { assertEquals(sampleChars()[i], stream.readChar()); } assertEquals(1, stream.getData().readable()); } finally { }
11771178117911801181118211831184118511861187
@Test public void fReadChar_void() throws Exception { try { Stream stream = new Stream(); stream.readChar(); fail(); } catch (EOFException ex) { } finally { }
11861187118811891190119111921193119411951196
} try { Stream stream = new Stream(); stream.writeBit(1); stream.readChar(); fail(); } catch (InsufficientBufferException ex) { } finally { }
11951196119711981199120012011202120312041205
} try { Stream stream = new Stream(); stream.write(1); stream.readChar(); fail(); } catch (InsufficientBufferException ex) { } finally { } }