use of org.jpos.iso.ISOMsg in project jPOS by jpos.
the class VErrorParserTest method testGetVErrors3.
@SuppressWarnings("unchecked")
@Test
public void testGetVErrors3() throws Throwable {
VErrorParser vErrorParser = new VErrorParser();
ISOMsg c = new ISOMsg();
c.set(100, "testVErrorParserValue");
Vector result = vErrorParser.getVErrors(c);
assertEquals("result.size()", 0, result.size());
}
use of org.jpos.iso.ISOMsg in project jPOS by jpos.
the class VErrorParserTest method testGetVErrors4.
@SuppressWarnings("unchecked")
@Test
public void testGetVErrors4() throws Throwable {
VErrorParser vErrorParser = new VErrorParser();
ISOComponent c = new ISOMsg();
Vector result = vErrorParser.getVErrors(c);
assertEquals("(ISOMsg) c.getMaxField()", 0, c.getMaxField());
assertEquals("result.size()", 0, result.size());
}
use of org.jpos.iso.ISOMsg in project jPOS by jpos.
the class VErrorParserTest method testGetVErrors.
@SuppressWarnings("unchecked")
@Test
public void testGetVErrors() throws Throwable {
VErrorParser vErrorParser = new VErrorParser();
Vector result = vErrorParser.getVErrors(new ISOVMsg(new ISOMsg("testVErrorParserMti")));
assertEquals("result.size()", 0, result.size());
}
use of org.jpos.iso.ISOMsg in project jPOS by jpos.
the class ChannelAdaptorTest method receivePullsMessageFromUnderlyingChannel.
@Test
public void receivePullsMessageFromUnderlyingChannel() throws Exception {
StubISOChannel stubISOChannel = new StubISOChannel();
channelAdaptor = configureAndStart(new ChannelAdaptorWithoutQ2(stubISOChannel));
stubISOChannel.receiveQueue.add(new ISOMsg("0800"));
assertThat(channelAdaptor.receive(1000), hasMti("0800"));
}
use of org.jpos.iso.ISOMsg in project jPOS by jpos.
the class QMUXTest method testProcessUnhandled1.
@Test
public void testProcessUnhandled1() throws Throwable {
QMUX qMUX = new QMUX();
ISOMsg m = new ISOMsg("testQMUXMti");
qMUX.processUnhandled(m);
assertNull("qMUX.sp", qMUX.sp);
assertEquals("qMUX.listeners.size()", 0, qMUX.listeners.size());
assertEquals("m.getDirection()", 0, m.getDirection());
}
Aggregations