use of org.jpos.iso.header.BaseHeader in project jPOS by jpos.
the class BaseChannelTest method testGetDynamicHeader.
@Test
public void testGetDynamicHeader() throws Throwable {
BaseChannel rawChannel = new RawChannel();
byte[] image = new byte[2];
BaseHeader result = (BaseHeader) rawChannel.getDynamicHeader(image);
assertEquals(2, result.getLength(), "result.getLength()");
}
use of org.jpos.iso.header.BaseHeader in project jPOS by jpos.
the class BaseChannelTest method testGetHeaderLength1.
@Test
public void testGetHeaderLength1() throws Throwable {
BaseChannel logChannel = new LogChannel("testBaseChannelHost", 100, new GenericValidatingPackager());
ISOMsg iSOVMsg = new ISOMsg();
iSOVMsg.setHeader(new BaseHeader());
int result = logChannel.getHeaderLength((ISOMsg) iSOVMsg.clone());
assertEquals(0, result, "result");
}
Aggregations