Package com.cloudhopper.smpp

Examples of com.cloudhopper.smpp.SmppSessionConfiguration


        }
    }

    @Test
    public void enquireLinkWithARequestWithSameSequenceNumber() throws Exception {
        SmppSessionConfiguration configuration = createDefaultConfiguration();
        registerServerBindProcessor();
        clearAllServerSessions();

        // bind and get the simulator session
        DefaultSmppSession session = (DefaultSmppSession)bootstrap.bind(configuration);
View Full Code Here


        }
    }

    @Test
    public void multipleEnquireLinks() throws Exception {
        SmppSessionConfiguration configuration = createDefaultConfiguration();
        registerServerBindProcessor();
        clearAllServerSessions();

        // bind and get the simulator session
        DefaultSmppSession session = (DefaultSmppSession)bootstrap.bind(configuration);
View Full Code Here

        }
    }

    @Test
    public void windowSizeBlocksAsyncRequest() throws Exception {
        SmppSessionConfiguration configuration = createDefaultConfiguration();
        registerServerBindProcessor();
        clearAllServerSessions();

        // change window size to 3
        configuration.setWindowSize(3);

        // bind and get the simulator session
        DefaultSmppSession session = (DefaultSmppSession)bootstrap.bind(configuration);
        SmppSimulatorSessionHandler simulator0 = server.pollNextSession(1000);
        // make sure the processor is null
View Full Code Here

    }


    @Test
    public void cumulationOfMultipleByteBuffersToParsePdu() throws Exception {
        SmppSessionConfiguration configuration = createDefaultConfiguration();
        registerServerBindProcessor();
        clearAllServerSessions();

        // bind and get the simulator session
        PollableSmppSessionHandler sessionHandler = new PollableSmppSessionHandler();
View Full Code Here

        }
    }

    @Test
    public void routePduResponseToWaitingThread() throws Exception {
        SmppSessionConfiguration configuration = createDefaultConfiguration();
        registerServerBindProcessor();
        clearAllServerSessions();

        // bind and get the simulator session
        PollableSmppSessionHandler sessionHandler = new PollableSmppSessionHandler();
View Full Code Here

    }


    @Test
    public void receiveExpectedPduResponseViaAnAsynchronousSend() throws Exception {
        SmppSessionConfiguration configuration = createDefaultConfiguration();
        registerServerBindProcessor();
        clearAllServerSessions();

        // bind and get the simulator session
        PollableSmppSessionHandler sessionHandler = new PollableSmppSessionHandler();
View Full Code Here

    }


    @Test
    public void impossiblePDULengthCausesUnrecoverablePduException() throws Exception {
        SmppSessionConfiguration configuration = createDefaultConfiguration();
        registerServerBindProcessor();
        clearAllServerSessions();

        // bind and get the simulator session
        PollableSmppSessionHandler sessionHandler = new PollableSmppSessionHandler();
View Full Code Here

    }
     */

    @Test
    public void noTerminatingZeroCausesRecoverablePduException() throws Exception {
        SmppSessionConfiguration configuration = createDefaultConfiguration();
        registerServerBindProcessor();
        clearAllServerSessions();

        // bind and get the simulator session
        PollableSmppSessionHandler sessionHandler = new PollableSmppSessionHandler();
View Full Code Here

    }


    @Test
    public void closeDoesNotTriggerUnexpectedlyClosedEvent() throws Exception {
        SmppSessionConfiguration configuration = createDefaultConfiguration();
        registerServerBindProcessor();
        clearAllServerSessions();

        // bind and get the simulator session
        PollableSmppSessionHandler sessionHandler = new PollableSmppSessionHandler();
View Full Code Here

    }


    @Test
    public void unbindWithNoResponseDoesNotTriggerUnexpectedlyClosedEvent() throws Exception {
        SmppSessionConfiguration configuration = createDefaultConfiguration();
        registerServerBindProcessor();
        clearAllServerSessions();

        // bind and get the simulator session
        PollableSmppSessionHandler sessionHandler = new PollableSmppSessionHandler();
View Full Code Here

TOP

Related Classes of com.cloudhopper.smpp.SmppSessionConfiguration

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.