Package org.jpos.iso.packager

Examples of org.jpos.iso.packager.ISO93APackager


        assertNull("postChannel.getHost()", postChannel.getHost());
    }

    @Test
    public void testConstructor1() throws Throwable {
        ISOPackager p = new ISO93APackager();
        PostChannel postChannel = new PostChannel("testPostChannelHost", 100, p);
        assertEquals("postChannel.getIncomingFilters().size()", 0, postChannel.getIncomingFilters().size());
        assertEquals("postChannel.getMaxPacketLength()", 100000, postChannel.getMaxPacketLength());
        assertSame("postChannel.getPackager()", p, postChannel.getPackager());
        assertEquals("postChannel.getPort()", 100, postChannel.getPort());
View Full Code Here


        }
    }

    @Test
    public void testSendMessageLengthThrowsNullPointerException() throws Throwable {
        PostChannel postChannel = new PostChannel(new ISO93APackager());
        try {
            postChannel.sendMessageLength(100);
            fail("Expected NullPointerException to be thrown");
        } catch (NullPointerException ex) {
            assertNull("ex.getMessage()", ex.getMessage());
View Full Code Here

TOP

Related Classes of org.jpos.iso.packager.ISO93APackager

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.