private void testSetByte(Buffer buff) throws Exception { for (int i = 0; i < numSets; i++) { buff.setByte(i, (byte) i); } for (int i = 0; i < numSets; i++) { assertEquals(i, buff.getByte(i)); } }
@Test public void testAppendByte2() throws Exception { int bytesLen = 100; Buffer b = new Buffer(TestUtils.generateRandomByteArray(bytesLen)); b.setByte(b.length(), (byte) 9); }