コード例 #1
0
 private void assertEncoding(String expected, byte[] encoded) {
   String actual = ByteUtil.convertByteArrayToHexString(encoded);
   assertEquals(expected, actual);
 }
コード例 #2
0
 private void assertDecoding(Message message, Context decodingContext, String expected) {
   ByteArrayInputStream byteIn =
       new ByteArrayInputStream(ByteUtil.convertHexStringToByteArray(expected));
   FastDecoder decoder = new FastDecoder(decodingContext, byteIn);
   assertEquals(message, decoder.readMessage());
 }