use of org.jpos.iso.SunJSSESocketFactory in project jPOS by jpos.
the class VAPChannelTest method testSetConfiguration.
@Test
public void testSetConfiguration() throws Throwable {
VAPChannel vAPChannel = new VAPChannel(new Base1Packager());
vAPChannel.setSocketFactory(new SunJSSESocketFactory());
vAPChannel.setConfiguration(new SimpleConfiguration());
assertEquals("vAPChannel.srcid", "000000", vAPChannel.srcid);
assertEquals("vAPChannel.dstid", "000000", vAPChannel.dstid);
assertEquals("vAPChannel.getMaxPacketLength()", 100000, vAPChannel.getMaxPacketLength());
assertEquals("vAPChannel.getPort()", 0, vAPChannel.getPort());
assertNull("vAPChannel.getSocket()", vAPChannel.getSocket());
assertEquals("vAPChannel.getTimeout()", 300000, vAPChannel.getTimeout());
assertFalse("vAPChannel.isOverrideHeader()", vAPChannel.isOverrideHeader());
assertNull("vAPChannel.getHost()", vAPChannel.getHost());
}
Aggregations