Package com.alibaba.dubbo.rpc.cluster

Examples of com.alibaba.dubbo.rpc.cluster.Router.route()


        Invoker<String> invoker2 = new MockInvoker<String>(true) ;
        Invoker<String> invoker3 = new MockInvoker<String>(true) ;
        invokers.add(invoker1);
        invokers.add(invoker2);
        invokers.add(invoker3);
        List<Invoker<String>> fileredInvokers = router.route(invokers, invokers.get(0).getUrl(), new RpcInvocation());
        Assert.assertEquals(2, fileredInvokers.size());
        Assert.assertEquals(invoker2, fileredInvokers.get(0));
        Assert.assertEquals(invoker3, fileredInvokers.get(1));
    }
    //TODO 异常场景测试。
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.