Package org.jpos.iso.channel

Examples of org.jpos.iso.channel.BASE24Channel


        assertEquals("(GZIPChannel) gZIPChannel.outgoingFilters.size()", 1, ((GZIPChannel) gZIPChannel).outgoingFilters.size());
    }

    @Test
    public void testAddFilter4() throws Throwable {
        BaseChannel bASE24Channel = new BASE24Channel("testBaseChannelHost", 100, new ISO87APackagerBBitmap());
        bASE24Channel.addFilter(new MD5Filter(), 0);
        assertEquals("(BASE24Channel) bASE24Channel.incomingFilters.size()", 1,
                ((BASE24Channel) bASE24Channel).incomingFilters.size());
        assertEquals("(BASE24Channel) bASE24Channel.outgoingFilters.size()", 1,
                ((BASE24Channel) bASE24Channel).outgoingFilters.size());
    }
View Full Code Here


        assertNull("result", result);
    }

    @Test
    public void testApplyOutgoingFiltersThrowsVetoException() throws Throwable {
        BaseChannel bASE24Channel = new BASE24Channel("testBaseChannelHost", 100, new ISO87APackagerBBitmap());
        bASE24Channel.addFilter(new MD5Filter(), 0);
        try {
            bASE24Channel.applyOutgoingFilters(new ISOMsg(), new LogEvent());
            fail("Expected VetoException to be thrown");
        } catch (ISOFilter.VetoException ex) {
            assertEquals("ex.getMessage()", "MD5Filter not configured", ex.getMessage());
            assertNull("ex.nested", ex.nested);
        }
View Full Code Here

        assertEquals("result.getLength()", 2, result.getLength());
    }

    @Test
    public void testGetDynamicHeader1() throws Throwable {
        BaseChannel bASE24Channel = new BASE24Channel("testBaseChannelHost", 100, new ISO87APackagerBBitmap());
        ISOHeader result = bASE24Channel.getDynamicHeader((byte[]) null);
        assertNull("result", result);
    }
View Full Code Here

    }

    @Test
    public void testGetHeader() throws Throwable {
        byte[] header = new byte[0];
        BaseChannel bASE24Channel = new BASE24Channel(new ISO87APackager(), new ServerSocket());
        bASE24Channel.setHeader(header);
        byte[] result = bASE24Channel.getHeader();
        assertSame("result", header, result);
    }
View Full Code Here

        assertEquals("(NACChannel) nACChannel.outgoingFilters.size()", 0, ((NACChannel) nACChannel).outgoingFilters.size());
    }

    @Test
    public void testRemoveIncomingFilter() throws Throwable {
        BaseChannel bASE24Channel = new BASE24Channel("testBaseChannelHost", 100, new ISO87APackagerBBitmap());
        bASE24Channel.removeIncomingFilter(new XSLTFilter());
        assertEquals("(BASE24Channel) bASE24Channel.incomingFilters.size()", 0,
                ((BASE24Channel) bASE24Channel).incomingFilters.size());
    }
View Full Code Here

        }
    }

    @Test
    public void testSendMessageHeaderThrowsNullPointerException1() throws Throwable {
        BaseChannel bASE24Channel = new BASE24Channel("testBaseChannelHost", 100, new ISO87APackagerBBitmap());
        try {
            bASE24Channel.sendMessageHeader(null, 100);
            fail("Expected NullPointerException to be thrown");
        } catch (NullPointerException ex) {
            assertNull("ex.getMessage()", ex.getMessage());
            assertNull("(BASE24Channel) bASE24Channel.serverOut", ((BASE24Channel) bASE24Channel).serverOut);
        }
View Full Code Here

TOP

Related Classes of org.jpos.iso.channel.BASE24Channel

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.