use of org.jpos.iso.ISOPackager in project jPOS by jpos.
the class RawChannelTest method testConstructor1.
@Test
public void testConstructor1() throws Throwable {
byte[] header = new byte[3];
ISOPackager p = new ISOBaseValidatingPackager();
RawChannel rawChannel = new RawChannel("testRawChannelHost", 100, p, header);
assertEquals(0, rawChannel.getIncomingFilters().size(), "rawChannel.getIncomingFilters().size()");
assertEquals(100000, rawChannel.getMaxPacketLength(), "rawChannel.getMaxPacketLength()");
assertSame(p, rawChannel.getPackager(), "rawChannel.getPackager()");
assertEquals(100, rawChannel.getPort(), "rawChannel.getPort()");
assertEquals("", rawChannel.getName(), "rawChannel.getName()");
assertEquals(3, rawChannel.getCounters().length, "rawChannel.getCounters().length");
assertNull(rawChannel.getLogger(), "rawChannel.getLogger()");
assertNull(rawChannel.getSocketFactory(), "rawChannel.getSocketFactory()");
assertSame(header, rawChannel.getHeader(), "rawChannel.getHeader()");
assertEquals(0, rawChannel.getOutgoingFilters().size(), "rawChannel.getOutgoingFilters().size()");
assertNull(rawChannel.getServerSocket(), "rawChannel.getServerSocket()");
assertEquals("org.jpos.iso.channel.RawChannel", rawChannel.getOriginalRealm(), "rawChannel.getOriginalRealm()");
assertNull(rawChannel.getRealm(), "rawChannel.getRealm()");
assertEquals("testRawChannelHost", rawChannel.getHost(), "rawChannel.getHost()");
}
Aggregations