[ROCKETMQ-52] Remove unnecessary stubbing

This commit is contained in:
yukon
2017-01-19 15:45:19 +08:00
parent 9d8bd5902a
commit 4291348ef7
@@ -55,7 +55,6 @@ import org.mockito.invocation.InvocationOnMock;
import org.mockito.junit.MockitoJUnitRunner;
import org.mockito.stubbing.Answer;
import static org.apache.rocketmq.client.producer.DefaultMQProducerTest.createTopicRoute;
import static org.assertj.core.api.Assertions.assertThat;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.anyBoolean;
@@ -111,7 +110,6 @@ public class DefaultMQPushConsumerTest {
when(mQClientFactory.findBrokerAddressInSubscribe(anyString(), anyLong(), anyBoolean())).thenReturn(new FindBrokerResult("127.0.0.1:10911", false));
mQClientFactory.registerConsumer(consumerGroup, pushConsumerImpl);
mQClientFactory.start();
when(mQClientAPIImpl.getTopicRouteInfoFromNameServer(anyString(), anyLong())).thenReturn(createTopicRoute());
}
@After