Search in sources :

Example 11 with X25Channel

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

the class BaseChannelTest method testApplyOutgoingFilters1.

@Test
public void testApplyOutgoingFilters1() throws Throwable {
    BaseChannel x25Channel = new X25Channel();
    ISOMsg result = x25Channel.applyOutgoingFilters(null, new LogEvent(new CTCSubFieldPackager(), "testBaseChannelTag"));
    assertNull(result, "result");
}
Also used : LogEvent(org.jpos.util.LogEvent) X25Channel(org.jpos.iso.channel.X25Channel) CTCSubFieldPackager(org.jpos.iso.packager.CTCSubFieldPackager) Test(org.junit.jupiter.api.Test)

Example 12 with X25Channel

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

the class BaseChannelTest method testSetOutgoingFilters.

@Test
public void testSetOutgoingFilters() throws Throwable {
    BaseChannel x25Channel = new X25Channel();
    x25Channel.setOutgoingFilters(new ArrayList());
    assertEquals(0, ((X25Channel) x25Channel).outgoingFilters.size(), "(X25Channel) x25Channel.outgoingFilters.size()");
}
Also used : X25Channel(org.jpos.iso.channel.X25Channel) ArrayList(java.util.ArrayList) Test(org.junit.jupiter.api.Test)

Example 13 with X25Channel

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

the class BaseChannelTest method testAddFilter1.

@Test
public void testAddFilter1() throws Throwable {
    BaseChannel x25Channel = new X25Channel();
    x25Channel.addFilter(new StatefulFilter(), 100);
    assertEquals(0, ((X25Channel) x25Channel).incomingFilters.size(), "(X25Channel) x25Channel.incomingFilters.size()");
    assertEquals(0, ((X25Channel) x25Channel).outgoingFilters.size(), "(X25Channel) x25Channel.outgoingFilters.size()");
}
Also used : X25Channel(org.jpos.iso.channel.X25Channel) StatefulFilter(org.jpos.iso.filter.StatefulFilter) Test(org.junit.jupiter.api.Test)

Aggregations

X25Channel (org.jpos.iso.channel.X25Channel)13 Test (org.junit.jupiter.api.Test)13 LogEvent (org.jpos.util.LogEvent)4 MD5Filter (org.jpos.iso.filter.MD5Filter)3 StatefulFilter (org.jpos.iso.filter.StatefulFilter)3 CTCSubFieldPackager (org.jpos.iso.packager.CTCSubFieldPackager)3 ArrayList (java.util.ArrayList)1 Configuration (org.jpos.core.Configuration)1 SimpleConfiguration (org.jpos.core.SimpleConfiguration)1 GenericValidatingPackager (org.jpos.iso.packager.GenericValidatingPackager)1 XMLPackager (org.jpos.iso.packager.XMLPackager)1