Examples of ISOVMsg


Examples of org.jpos.iso.ISOVMsg

        Configuration cfg = new SimpleConfiguration();
        bSHFilter.setConfiguration(cfg);
        ISOChannel channel = new CSChannel();
        LogEvent evt = new LogEvent();

        ISOVMsg result = (ISOVMsg) bSHFilter.filter(channel, m, evt);
        assertSame("result", m, result);
        assertSame("bSHFilter.cfg", cfg, bSHFilter.cfg);
    }
View Full Code Here

Examples of org.jpos.iso.ISOVMsg

    @SuppressWarnings("unchecked")
    @Test
    public void testGetVErrors() throws Throwable {
        VErrorParser vErrorParser = new VErrorParser();
        Vector result = vErrorParser.getVErrors(new ISOVMsg(new ISOMsg("testVErrorParserMti")));
        assertEquals("result.size()", 0, result.size());
    }
View Full Code Here

Examples of org.jpos.iso.ISOVMsg

    @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.ISOVMsg

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

Examples of org.jpos.iso.ISOVMsg

    @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.ISOVMsg

    @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.ISOVMsg

    }

    @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) {
            assertNull("ex.getMessage()", ex.getMessage());
View Full Code Here

Examples of org.jpos.iso.ISOVMsg

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

Examples of org.jpos.iso.ISOVMsg

        msgVlds[0] = new MSGTEST();
        msgVlds[1] = new ISOBaseValidator();
        genericValidatingPackager.setMsgValidator(msgVlds);
        ISOMsg m = new ISOMsg("testGenericValidatingPackagerMti");
        m.setMTI("testGenericValidatingPackagerMti");
        ISOVMsg result = (ISOVMsg) genericValidatingPackager.validate(m);
        assertNotNull("result", result);
    }
View Full Code Here

Examples of org.jpos.iso.ISOVMsg

        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
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.