diff options
author | CGantert345 <57003061+CGantert345@users.noreply.github.com> | 2021-01-05 11:06:35 +0100 |
---|---|---|
committer | CGantert345 <57003061+CGantert345@users.noreply.github.com> | 2021-01-05 11:06:35 +0100 |
commit | a2646bc8c28ffdf90c0d6bc5c1162e78d5a1aa4f (patch) | |
tree | 7ff7413b456b2c694ddf611911676ef4ebf8ee9d /src/net/gcdc | |
parent | UTC offset of valid from / until dates in Pass (diff) | |
download | UIC-barcode-a2646bc8c28ffdf90c0d6bc5c1162e78d5a1aa4f.tar UIC-barcode-a2646bc8c28ffdf90c0d6bc5c1162e78d5a1aa4f.tar.gz UIC-barcode-a2646bc8c28ffdf90c0d6bc5c1162e78d5a1aa4f.tar.bz2 UIC-barcode-a2646bc8c28ffdf90c0d6bc5c1162e78d5a1aa4f.tar.lz UIC-barcode-a2646bc8c28ffdf90c0d6bc5c1162e78d5a1aa4f.tar.xz UIC-barcode-a2646bc8c28ffdf90c0d6bc5c1162e78d5a1aa4f.tar.zst UIC-barcode-a2646bc8c28ffdf90c0d6bc5c1162e78d5a1aa4f.zip |
Diffstat (limited to 'src/net/gcdc')
-rw-r--r-- | src/net/gcdc/asn1/test/UperEncodeStringDefaultTest.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/net/gcdc/asn1/test/UperEncodeStringDefaultTest.java b/src/net/gcdc/asn1/test/UperEncodeStringDefaultTest.java index 5abaa37..46f2ba9 100644 --- a/src/net/gcdc/asn1/test/UperEncodeStringDefaultTest.java +++ b/src/net/gcdc/asn1/test/UperEncodeStringDefaultTest.java @@ -64,7 +64,14 @@ public class UperEncodeStringDefaultTest { assertEquals(result.valueIA5,"testString"); } - + @Test public void testEncodeDefault2() throws IllegalArgumentException, IllegalAccessException { + TestRecord record = new TestRecord("Müller", null); + byte[] encoded = UperEncoder.encode(record); + TestRecord result = UperEncoder.decode(encoded, TestRecord.class); + String hex = UperEncoder.hexStringFromBytes(encoded); + UperEncoder.logger.log(Level.FINEST,String.format("data hex: %s", hex)); + assertEquals(result.valueIA5,"testString"); + } } |