Package org.jpos.iso.channel

Examples of org.jpos.iso.channel.CSChannel.disconnect()


    @Test
    public void testDisconnect1() throws Throwable {
        ServerSocket sock = new ServerSocket();
        BaseChannel cSChannel = new CSChannel(new PostPackager());
        cSChannel.setServerSocket(sock);
        cSChannel.disconnect();
        assertSame("(CSChannel) cSChannel.serverSocket", sock, ((CSChannel) cSChannel).serverSocket);
        assertNull("(CSChannel) cSChannel.getSocket()", cSChannel.getSocket());
        assertFalse("(CSChannel) cSChannel.usable", ((CSChannel) cSChannel).usable);
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.