mirror of
https://github.com/apache/rocketmq.git
synced 2026-10-31 02:57:35 +08:00
[ROCKETMQ-52] Remove unnecessary stubbing
This commit is contained in:
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user