diff options
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"); + } } |