Package samples.userguide

Examples of samples.userguide.LoadbalanceFailoverClient


    public void testSample() throws Exception {
        setUpSynapseEnv();
        startCustomAxis2Server("9001", "9005");
        startCustomAxis2Server("9002", "9006");
        listenerManager = startCustomAxis2Server("9003", "9007");
        String resultString = (new LoadbalanceFailoverClient()).sessionlessClient();
        assertTrue(resultString.contains("9001"));
        assertTrue(resultString.contains("9002"));
        assertTrue(resultString.contains("9003"));

        listenerManager.destroy();
        listenerManager.isStopped();
        resultString = (new LoadbalanceFailoverClient()).sessionlessClient();
        assertTrue(resultString.contains("9001"));
        assertTrue(resultString.contains("9002"));
        assertFalse(resultString.contains("9003"));
    }
View Full Code Here


    public void testSample() throws Exception {
        setUpSynapseEnv();
        startCustomAxis2Server("9001", "9005");
        startCustomAxis2Server("9002", "9006");
        startCustomAxis2Server("9003", "9007");
        String resultString = (new LoadbalanceFailoverClient()).sessionlessClient();
        assertTrue(resultString.contains("9001"));
        assertTrue(resultString.contains("9002"));
        assertTrue(resultString.contains("9003"));       
        resultString = (new LoadbalanceFailoverClient()).sessionlessClient();
        assertTrue(resultString.contains("9001"));
        assertTrue(resultString.contains("9002"));
        assertFalse(resultString.contains("9003"));
    }
View Full Code Here

TOP

Related Classes of samples.userguide.LoadbalanceFailoverClient

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.