Search in sources :

Example 6 with MD5Filter

use of org.jpos.iso.filter.MD5Filter in project jPOS by jpos.

the class BaseChannelTest method testAddFilter4.

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

Aggregations

MD5Filter (org.jpos.iso.filter.MD5Filter)6 Test (org.junit.Test)6 X25Channel (org.jpos.iso.channel.X25Channel)3 BASE24Channel (org.jpos.iso.channel.BASE24Channel)2 ISO87APackagerBBitmap (org.jpos.iso.packager.ISO87APackagerBBitmap)2 LogEvent (org.jpos.util.LogEvent)2 PADChannel (org.jpos.iso.channel.PADChannel)1 CTCSubFieldPackager (org.jpos.iso.packager.CTCSubFieldPackager)1