tests for #64
This commit is contained in:
@@ -220,4 +220,12 @@ public class TestConfigParser {
|
||||
Assert.assertEquals(IsoType.ALPHA, nestedField4.getType());
|
||||
Assert.assertEquals(13, nestedField4.getLength());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testEmptyFields() throws IOException, ParseException {
|
||||
final MessageFactory<IsoMessage> mfact = config("issue64.xml");
|
||||
IsoMessage msg = mfact.newMessage(0x200);
|
||||
Assert.assertEquals("", msg.getObjectValue(3));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
<j8583-config>
|
||||
|
||||
<template type="0200">
|
||||
<field num="3" type="NUMERIC" length="6"></field>
|
||||
</template>
|
||||
|
||||
</j8583-config>
|
||||
Reference in New Issue
Block a user