[ISSUE #3949] for check style and test case

This commit is contained in:
kaiyi.lk
2022-07-13 11:29:31 +08:00
committed by zhouxiang
parent 3c09e96cf8
commit 4882427b4c
2 changed files with 1 additions and 10 deletions
@@ -110,16 +110,6 @@ public class PopMessageProcessorTest {
assertThat(response.getRemark()).contains("topic[" + topic + "] not exist");
}
@Test
public void testProcessRequest_SubNotExist() throws RemotingCommandException {
brokerController.getConsumerManager().unregisterConsumer(group, clientChannelInfo, false);
final RemotingCommand request = createPopMsgCommand();
RemotingCommand response = popMessageProcessor.processRequest(handlerContext, request);
assertThat(response).isNotNull();
assertThat(response.getCode()).isEqualTo(ResponseCode.SUBSCRIPTION_NOT_EXIST);
assertThat(response.getRemark()).contains("consumer's group info not exist");
}
@Test
public void testProcessRequest_Found() throws RemotingCommandException {
GetMessageResult getMessageResult = createGetMessageResult(1);
+1
View File
@@ -244,6 +244,7 @@
<exclude>*/*.iml</exclude>
<exclude>docs/**</exclude>
<exclude>localbin/**</exclude>
<exclude>conf/rmq-proxy.json</exclude>
</excludes>
</configuration>
</plugin>