@Test(expected = BufferOverflowException.class) public void testGetAndSetPutLongException() { DynamicByteBuffer buf = DynamicByteBuffer.allocate(0); buf.setAutoExpand(false); buf.putLong(121L); }
@Test(expected = BufferOverflowException.class) public void testGetAndSetPutUnsignedIntException() throws Exception { DynamicByteBuffer buf = DynamicByteBuffer.allocate(0); buf.setAutoExpand(false); buf.putUnsignedInt(121); }