Examples of ISOVError


Examples of org.jpos.iso.ISOVError

    @SuppressWarnings("unchecked")
    @Test
    public void testGetVErrors1() throws Throwable {
        VErrorParser vErrorParser = new VErrorParser();
        ISOVError FirstError = new ISOVError("testVErrorParserDescription");
        ISOComponent c = new ISOVField(new ISOField(), FirstError);
        Vector result = vErrorParser.getVErrors(c);
        assertEquals("result.size()", 1, result.size());
        assertSame("result.get(0)", FirstError, result.get(0));
    }
View Full Code Here

Examples of org.jpos.iso.ISOVError

    @SuppressWarnings("unchecked")
    @Test
    public void testGetVErrors2() throws Throwable {
        VErrorParser vErrorParser = new VErrorParser();
        ISOVError FirstError = new ISOVError("testVErrorParserDescription", "testVErrorParserRejectCode");
        ISOComponent c = new ISOVMsg(new ISOMsg("testVErrorParserMti"), FirstError);
        Vector result = vErrorParser.getVErrors(c);
        assertEquals("result.size()", 1, result.size());
        assertSame("result.get(0)", FirstError, result.get(0));
    }
View Full Code Here

Examples of org.jpos.iso.ISOVError

    @SuppressWarnings("unchecked")
    @Test
    public void testGetVErrors6() throws Throwable {
        VErrorParser vErrorParser = new VErrorParser();
        ISOMsg Source = new ISOVMsg(new ISOMsg(), new ISOVError("testVErrorParserDescription"));
        Source.set(100, "testVErrorParserValue");
        Vector result = vErrorParser.getVErrors(new ISOVMsg(Source));
        assertEquals("result.size()", 0, result.size());
    }
View Full Code Here

Examples of org.jpos.iso.ISOVError

    @SuppressWarnings("unchecked")
    @Test
    public void testGetVErrors8() throws Throwable {
        VErrorParser vErrorParser = new VErrorParser();
        ISOVError FirstError = new ISOVError("testVErrorParserDescription");
        ISOComponent c = new ISOVMsg(new ISOMsg(), FirstError);
        Vector result = vErrorParser.getVErrors(c);
        assertEquals("result.size()", 1, result.size());
        assertSame("result.get(0)", FirstError, result.get(0));
    }
View Full Code Here

Examples of org.jpos.iso.ISOVError

    }

    @Test
    public void testGetVErrorsThrowsNullPointerException() throws Throwable {
        VErrorParser vErrorParser = new VErrorParser();
        ISOVMsg c = new ISOVMsg(new ISOMsg(), new ISOVError("testVErrorParserDescription"));
        c.addISOVError(null);
        try {
            vErrorParser.getVErrors(c);
            fail("Expected NullPointerException to be thrown");
        } catch (NullPointerException ex) {
View Full Code Here

Examples of org.jpos.iso.ISOVError

    }

    @Test
    public void testGetVErrorsThrowsNullPointerException2() throws Throwable {
        VErrorParser vErrorParser = new VErrorParser();
        ISOVField c = new ISOVField(new ISOField(), new ISOVError("testVErrorParserDescription"));
        c.addISOVError(null);
        try {
            vErrorParser.getVErrors(c);
            fail("Expected NullPointerException to be thrown");
        } catch (NullPointerException ex) {
View Full Code Here

Examples of org.jpos.iso.ISOVError

        assertSame("result", m, result);
    }

    @Test
    public void testValidate2() throws Throwable {
        ISOMsg m = new ISOVMsg(new ISOMsg("testMSGTEST02Mti"), new ISOVError("testMSGTEST02Description"));
        m.set(1, "testMSGTEST02Value");
        ISOMsg result = (ISOMsg) new MSGTEST02().validate(m);
        assertSame("result", m, result);
    }
View Full Code Here

Examples of org.jpos.iso.ISOVError

        }
    }

    @Test
    public void testValidateThrowsNullPointerException3() throws Throwable {
        ISOVError FirstError = new ISOVError("testISOBaseValidatingPackagerDescription", "testISOBaseValidatingPackagerRejectCode");
        ISOBaseValidator[] msgVlds = new ISOBaseValidator[1];
        msgVlds[0] = new MSGTEST02();
        ISOBaseValidatingPackager iSOBaseValidatingPackager = new ISOBaseValidatingPackager();
        iSOBaseValidatingPackager.setMsgValidator(msgVlds);
        ISOComponent m = new ISOVMsg(new ISOMsg(), FirstError);
View Full Code Here

Examples of org.jpos.iso.ISOVError

        }
    }

    @Test
    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();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.