Esempio n. 1
0
 @Test
 public void testHexDump() {
   // TODO: should test actual HEX values, 1 and 2 digits
   WrappedByteBuffer buf = new WrappedByteBuffer();
   buf.put((byte) 1);
   buf.put((byte) 2);
   buf.put((byte) 3);
   buf.flip();
   assertEquals("1 2 3 ", buf.getHexDump());
 }