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