Package org.jpos.iso

Examples of org.jpos.iso.IVA_ALPHANUM


    @Test
    public void testSetConfigurationThrowsNullPointerException() throws Throwable {
        String[] args = new String[0];
        try {
            new QFactory(new ObjectName(""), new Q2(args)).setConfiguration(new IVA_ALPHANUM(true, 100, 1000,
                    "testQFactoryDescription"), null);
            fail("Expected NullPointerException to be thrown");
        } catch (NullPointerException ex) {
            assertNull("ex.getMessage()", ex.getMessage());
        }
View Full Code Here


        msgVlds[0] = mSGTEST2;
        msgVlds[1] = mSGTEST;
        msgVlds[2] = mSGTEST2;
        genericValidatingPackager.setMsgValidator(msgVlds);
        ISOFieldValidator[] fvlds = new ISOFieldValidator[1];
        fvlds[0] = new IVA_ALPHANUM("testGenericValidatingPackagerDescription");
        genericValidatingPackager.setFieldValidator(fvlds);
        ISOVMsg result = (ISOVMsg) genericValidatingPackager.validate(new ISOMsg(100));
        assertNotNull("result", result);
    }
View Full Code Here

        ISOBaseValidator[] msgVlds = new ISOBaseValidator[3];
        msgVlds[0] = new MSGTEST(false);
        msgVlds[1] = new MSGTEST(true);
        genericValidatingPackager.setMsgValidator(msgVlds);
        ISOFieldValidator[] fvlds = new ISOFieldValidator[1];
        fvlds[0] = new IVA_ALPHANUM("testGenericValidatingPackagerDescription");
        genericValidatingPackager.setFieldValidator(fvlds);
        try {
            genericValidatingPackager.validate(new ISOMsg(100));
            fail("Expected ISOVException to be thrown");
        } catch (ISOVException ex) {
View Full Code Here

    @Test
    public void testValidate12() throws Throwable {
        ISOBaseValidator[] msgVlds = new ISOBaseValidator[1];
        msgVlds[0] = new MSGTEST02();
        ISOFieldValidator[] fvlds = new ISOFieldValidator[1];
        fvlds[0] = new IVA_ALPHANUM("testISOBaseValidatingPackagerDescription");
        ISOBaseValidatingPackager iSOBaseValidatingPackager = new ISOBaseValidatingPackager();
        iSOBaseValidatingPackager.setFieldValidator(fvlds);
        iSOBaseValidatingPackager.setMsgValidator(msgVlds);
        ISOVMsg result = (ISOVMsg) iSOBaseValidatingPackager.validate(new ISOMsg("testISOBaseValidatingPackagerMti"));
        assertNotNull("result", result);
View Full Code Here

        ISOBaseValidator[] msgVlds = new ISOBaseValidator[2];
        msgVlds[0] = new TEST0100(true);
        ISOBaseValidatingPackager iSOBaseValidatingPackager = new ISOBaseValidatingPackager();
        iSOBaseValidatingPackager.setMsgValidator(msgVlds);
        ISOFieldValidator[] fvlds = new ISOFieldValidator[3];
        fvlds[0] = new IVA_ALPHANUM();
        iSOBaseValidatingPackager.setFieldValidator(fvlds);
        try {
            iSOBaseValidatingPackager.validate(new ISOMsg(100));
            fail("Expected ISOException to be thrown");
        } catch (ISOException ex) {
View Full Code Here

    public void testValidateThrowsNullPointerException4() throws Throwable {
        ISOVError FirstError = new ISOVError("testISOBaseValidatingPackagerDescription", "testISOBaseValidatingPackagerRejectCode");
        ISOBaseValidator[] msgVlds = new ISOBaseValidator[1];
        msgVlds[0] = new MSGTEST02();
        ISOFieldValidator[] fvlds = new ISOFieldValidator[1];
        fvlds[0] = new IVA_ALPHANUM("testISOBaseValidatingPackagerDescription");
        ISOBaseValidatingPackager iSOBaseValidatingPackager = new ISOBaseValidatingPackager();
        iSOBaseValidatingPackager.setFieldValidator(fvlds);
        iSOBaseValidatingPackager.setMsgValidator(msgVlds);
        ISOComponent m = new ISOVMsg(new ISOMsg(), FirstError);
        try {
View Full Code Here

TOP

Related Classes of org.jpos.iso.IVA_ALPHANUM

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.