10611062106310641065106610671068106910701071
stream.writeBit(1); stream.readBit(); for (int i = 0; i < sampleShorts().length; i++) { assertEquals(sampleShorts()[i], stream.readShort()); } assertEquals(1, stream.getData().readable()); } finally { }
10731074107510761077107810791080108110821083
@Test public void fReadShort_void() throws Exception { try { Stream stream = new Stream(); stream.readShort(); fail(); } catch (EOFException ex) { } finally { }
10821083108410851086108710881089109010911092
} try { Stream stream = new Stream(); stream.writeBit(1); stream.readShort(); fail(); } catch (InsufficientBufferException ex) { } finally { }
10911092109310941095109610971098109911001101
} try { Stream stream = new Stream(); stream.write(1); stream.readShort(); fail(); } catch (InsufficientBufferException ex) { } finally { } }