983984985986987988989990991992993
stream.writeBit(1); stream.readBit(); for (int i = 0; i < sampleBytes().length; i++) { assertEquals(sampleBytes()[i], stream.readByte()); } assertEquals(1, stream.getData().readable()); } finally { }
995996997998999100010011002100310041005
@Test public void fReadByte_void() throws Exception { try { Stream stream = new Stream(); stream.readByte(); fail(); } catch (EOFException ex) { } try {
10031004100510061007100810091010101110121013
} try { Stream stream = new Stream(); stream.writeBit(1); stream.readByte(); fail(); } catch (InsufficientBufferException ex) { } }