Search in sources :

Example 6 with LogChannel

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

the class StatefulFilterTest method testFilter4.

@Test
public void testFilter4() throws Throwable {
    StatefulFilter statefulFilter = new StatefulFilter();
    statefulFilter.setConfiguration(new SimpleConfiguration());
    statefulFilter.setSavedFields(null);
    ISOMsg m = new ISOMsg("testStatefulFilterMti");
    m.setDirection(1);
    ISOMsg result = statefulFilter.filter(new LogChannel(), m, new LogEvent("testStatefulFilterTag", new Object()));
    assertSame("result", m, result);
}
Also used : ISOMsg(org.jpos.iso.ISOMsg) LogEvent(org.jpos.util.LogEvent) SimpleConfiguration(org.jpos.core.SimpleConfiguration) LogChannel(org.jpos.iso.channel.LogChannel) Test(org.junit.Test)

Aggregations

LogChannel (org.jpos.iso.channel.LogChannel)6 Test (org.junit.Test)6 SimpleConfiguration (org.jpos.core.SimpleConfiguration)2 ISOMsg (org.jpos.iso.ISOMsg)2 GenericValidatingPackager (org.jpos.iso.packager.GenericValidatingPackager)2 LogEvent (org.jpos.util.LogEvent)2 Properties (java.util.Properties)1 Configuration (org.jpos.core.Configuration)1 BaseHeader (org.jpos.iso.header.BaseHeader)1 ISO87APackager (org.jpos.iso.packager.ISO87APackager)1