use of org.jpos.iso.ISOFieldValidator in project jPOS by jpos.
the class ISOBaseValidatingPackagerTest method testValidate14.
@Test
public void testValidate14() throws Throwable {
ISOBaseValidator[] msgVlds = new ISOBaseValidator[2];
msgVlds[0] = new TEST0100(true);
ISOBaseValidatingPackager iSOBaseValidatingPackager = new ISOBaseValidatingPackager();
iSOBaseValidatingPackager.setMsgValidator(msgVlds);
ISOValidator[] fvlds = new ISOValidator[5];
fvlds[1] = new ISOFieldValidator();
iSOBaseValidatingPackager.setFieldValidator(fvlds);
ISOComponent m = new ISOMsg("testISOBaseValidatingPackagerMti");
ISOMsg result = (ISOMsg) iSOBaseValidatingPackager.validate(m);
assertSame("result", m, result);
}
Aggregations