From a2646bc8c28ffdf90c0d6bc5c1162e78d5a1aa4f Mon Sep 17 00:00:00 2001 From: CGantert345 <57003061+CGantert345@users.noreply.github.com> Date: Tue, 5 Jan 2021 11:06:35 +0100 Subject: Bug fix on passengerWithReducedMobility changed from boolean to Boolean to allow empty values --- src/net/gcdc/asn1/test/UperEncodeStringDefaultTest.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/net/gcdc/asn1/test') 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"); + } } -- cgit v1.2.3