use of org.jpos.iso.channel.BASE24TCPChannel in project jPOS by jpos.
the class StatefulFilterTest method testFilterThrowsNullPointerException2.
@Test
public void testFilterThrowsNullPointerException2() throws Throwable {
int[] key = new int[1];
StatefulFilter statefulFilter = new StatefulFilter();
statefulFilter.setKey(key);
try {
statefulFilter.filter(new BASE24TCPChannel(new GenericValidatingPackager()), null, new LogEvent());
fail("Expected NullPointerException to be thrown");
} catch (NullPointerException ex) {
assertNull("ex.getMessage()", ex.getMessage());
}
}
Aggregations