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