@Test public void toStringString() { byte[] recv = ByteHelper.hex2Byte("A0 00 00 00 42 10 10"); String val = Emv41TypeEnum.STRING.toString(recv); System.out.println(val); Assert.assertNotNull(val); Assert.assertFalse(val.startsWith("Error")); }
private void writeRecvTag(byte[] dest, int index, RecvTag tag, String value) { byte[] src = ByteHelper.hex2Byte(value); writeRecvTag(dest, index, tag, src); }