use of org.jpos.iso.filter.MacroFilter in project jPOS by jpos.
the class BaseChannelTest method testApplyIncomingFiltersThrowsNullPointerException.
@Test
public void testApplyIncomingFiltersThrowsNullPointerException() throws Throwable {
BaseChannel cSChannel = new CSChannel();
cSChannel.addIncomingFilter(new MacroFilter());
byte[] header = new byte[2];
try {
cSChannel.applyIncomingFilters(null, header, "testString".getBytes(), new LogEvent());
fail("Expected NullPointerException to be thrown");
} catch (NullPointerException ex) {
assertNull("ex.getMessage()", ex.getMessage());
}
}
Aggregations