Search in sources :

Example 26 with ISOFieldValidator

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);
}
Also used : ISOComponent(org.jpos.iso.ISOComponent) ISOMsg(org.jpos.iso.ISOMsg) ISOValidator(org.jpos.iso.ISOValidator) ISOBaseValidator(org.jpos.iso.ISOBaseValidator) TEST0100(org.jpos.iso.validator.TEST0100) ISOFieldValidator(org.jpos.iso.ISOFieldValidator) Test(org.junit.Test)

Aggregations

ISOFieldValidator (org.jpos.iso.ISOFieldValidator)26 Test (org.junit.Test)25 ISOBaseValidator (org.jpos.iso.ISOBaseValidator)22 ISOMsg (org.jpos.iso.ISOMsg)21 ISOValidator (org.jpos.iso.ISOValidator)9 IVA_ALPHANUMNOBLANK (org.jpos.iso.IVA_ALPHANUMNOBLANK)9 MSGTEST (org.jpos.iso.validator.MSGTEST)8 ISOVMsg (org.jpos.iso.ISOVMsg)7 TEST0100 (org.jpos.iso.validator.TEST0100)7 ISOException (org.jpos.iso.ISOException)6 MSGTEST02 (org.jpos.iso.validator.MSGTEST02)6 IVA_ALPHANUM (org.jpos.iso.IVA_ALPHANUM)5 Hashtable (java.util.Hashtable)3 ISOComponent (org.jpos.iso.ISOComponent)3 ISOVException (org.jpos.iso.validator.ISOVException)3 Properties (java.util.Properties)1 ObjectName (javax.management.ObjectName)1 Element (org.jdom2.Element)1 ISOVError (org.jpos.iso.ISOVError)1 IVA_ALPHANUMNOZERO_NOBLANK (org.jpos.iso.IVA_ALPHANUMNOZERO_NOBLANK)1