Package com.sun.sgs.impl.transport.tcp

Examples of com.sun.sgs.impl.transport.tcp.TcpTransport


        shutdown();
    }
   
    @Test(expected=NullPointerException.class)
    public void testNullProperties() throws Exception {       
        transport = new TcpTransport(null);
    }
View Full Code Here


        transport = new TcpTransport(null);
    }
   
    @Test
    public void testDefaults() throws Exception {
        transport = new TcpTransport(new Properties());
       
        if (transport.getDescriptor() == null)
            throw new Exception("Null descriptor");
        shutdown();
    }
View Full Code Here

        shutdown();
    }
   
    @Test
    public void testShutdownAfterShutdown() throws Exception {
        transport = new TcpTransport(new Properties());
        transport.shutdown();
        shutdown();
    }
View Full Code Here

        shutdown();
    }
   
    @Test(expected=NullPointerException.class)
    public void testNullHandler() throws Exception {
        transport = new TcpTransport(new Properties());
        transport.accept(null);
    }
View Full Code Here

        transport.accept(null);
    }
   
    @Test(expected=IllegalStateException.class)
    public void testAcceptAfterShutdown() throws Exception {
        transport = new TcpTransport(new Properties());
        Transport t = transport;
        shutdown();
        t.accept(new DummyHandler());
    }
View Full Code Here

        t.accept(new DummyHandler());
    }
   
    @Test
    public void testAccept() throws Exception {
        transport = new TcpTransport(new Properties());
        transport.accept(new DummyHandler());
        shutdown();
    }
View Full Code Here

        shutdown();
    }
   
    @Test(expected=IllegalStateException.class)
    public void testMultipleAccept() throws Exception {
        transport = new TcpTransport(new Properties());
        transport.accept(new DummyHandler());
        transport.accept(new DummyHandler());
    }
View Full Code Here

        transport.accept(new DummyHandler());
    }
   
    @Test
    public void testAcceptConnect() throws Exception {
        transport = new TcpTransport(new Properties());
        DummyHandler handler = new DummyHandler();
        transport.accept(handler);
        final DummyClient client = new DummyClient("testAcceptConnect");
        client.connect(TcpTransport.DEFAULT_PORT);   
        if (!handler.isConnected()) {
View Full Code Here

        shutdown();
    }
   
    @Test
    public void testServerDisconnect() throws Exception {
        transport = new TcpTransport(new Properties());
        DummyHandler handler = new DummyHandler();
        transport.accept(handler);
        final DummyClient client = new DummyClient("testServerDisconnect");
        client.connect(TcpTransport.DEFAULT_PORT);
View Full Code Here

        }
    }
     
    @Test
    public void testClientDisconnect() throws Exception {
        transport = new TcpTransport(new Properties());
        DummyHandler handler = new DummyHandler();
        transport.accept(handler);
        final DummyClient client = new DummyClient("testClientDisconnect");
        client.connect(TcpTransport.DEFAULT_PORT);
View Full Code Here

TOP

Related Classes of com.sun.sgs.impl.transport.tcp.TcpTransport

Copyright © 2018 www.massapicom. 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.