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/asn1/test/UperEncodeStringDefaultTest.java | |
parent | UTC offset of valid from / until dates in Pass (diff) | |
download | UIC-barcode-1.1.tar UIC-barcode-1.1.tar.gz UIC-barcode-1.1.tar.bz2 UIC-barcode-1.1.tar.lz UIC-barcode-1.1.tar.xz UIC-barcode-1.1.tar.zst UIC-barcode-1.1.zip |
Diffstat (limited to '')
-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"); + } } |