diecui1202 commented on a change in pull request #1144: [Dubbo-#1123] Fix 
several problems in ConsistentHashLoadBalance
URL: https://github.com/apache/incubator-dubbo/pull/1144#discussion_r186946594
 
 

 ##########
 File path: 
dubbo-cluster/src/test/java/com/alibaba/dubbo/rpc/cluster/loadbalance/LoadBalanceTest.java
 ##########
 @@ -200,5 +200,33 @@ public void testLoadBalanceWarmup() {
         Assert.assertEquals(100, AbstractLoadBalance
             .calculateWarmupWeight(20 * 60 * 1000, Constants.DEFAULT_WARMUP, 
Constants.DEFAULT_WEIGHT));
     }
+    
+    public Invocation createInvocation(int i) {
+               Invocation invocation = EasyMock.createMock(Invocation.class);
+               
EasyMock.expect(invocation.getMethodName()).andReturn("method").anyTimes();
 
 Review comment:
   Could you post a new PR while our test framework has changed to Mockito from 
EasyMock ?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org
For additional commands, e-mail: notifications-h...@dubbo.apache.org

Reply via email to