Search in sources :

Example 6 with BASE24Channel

use of org.jpos.iso.channel.BASE24Channel in project jPOS by jpos.

the class BaseChannelTest method testSendMessageHeaderThrowsNullPointerException1.

@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);
    }
}
Also used : BASE24Channel(org.jpos.iso.channel.BASE24Channel) ISO87APackagerBBitmap(org.jpos.iso.packager.ISO87APackagerBBitmap) Test(org.junit.Test)

Aggregations

BASE24Channel (org.jpos.iso.channel.BASE24Channel)6 Test (org.junit.Test)6 ISO87APackagerBBitmap (org.jpos.iso.packager.ISO87APackagerBBitmap)5 MD5Filter (org.jpos.iso.filter.MD5Filter)2 XSLTFilter (org.jpos.iso.filter.XSLTFilter)1 ISO87APackager (org.jpos.iso.packager.ISO87APackager)1 LogEvent (org.jpos.util.LogEvent)1