use of org.jpos.iso.packager.ISO93BPackager in project jPOS by jpos.
the class PADChannelTest method testConstructor1.
@Test
public void testConstructor1() throws Throwable {
ISOPackager p = new ISO93BPackager();
ServerSocket serverSocket = new ServerSocket();
PADChannel pADChannel = new PADChannel(p, serverSocket);
assertEquals("pADChannel.getIncomingFilters().size()", 0, pADChannel.getIncomingFilters().size());
assertEquals("pADChannel.getMaxPacketLength()", 100000, pADChannel.getMaxPacketLength());
assertSame("pADChannel.getPackager()", p, pADChannel.getPackager());
assertEquals("pADChannel.getPort()", 0, pADChannel.getPort());
assertEquals("pADChannel.getName()", "", pADChannel.getName());
assertEquals("pADChannel.getCounters().length", 3, pADChannel.getCounters().length);
assertNull("pADChannel.getLogger()", pADChannel.getLogger());
assertNull("pADChannel.getSocketFactory()", pADChannel.getSocketFactory());
assertNull("pADChannel.getHeader()", pADChannel.getHeader());
assertEquals("pADChannel.getOutgoingFilters().size()", 0, pADChannel.getOutgoingFilters().size());
assertSame("pADChannel.getServerSocket()", serverSocket, pADChannel.getServerSocket());
assertEquals("pADChannel.getOriginalRealm()", "org.jpos.iso.channel.PADChannel", pADChannel.getOriginalRealm());
assertNull("pADChannel.getRealm()", pADChannel.getRealm());
assertNull("pADChannel.getHost()", pADChannel.getHost());
assertNull("pADChannel.reader", pADChannel.reader);
}
Aggregations