Search in sources :

Example 1 with DeleteSubGroupRequest

use of org.apache.rocketmq.console.model.request.DeleteSubGroupRequest in project rocketmq-externals by apache.

the class ConsumerServiceImplTest method deleteSubGroup.

@Test
public void deleteSubGroup() throws Exception {
    createAndUpdateSubscriptionGroupConfig();
    DeleteSubGroupRequest deleteSubGroupRequest = new DeleteSubGroupRequest();
    deleteSubGroupRequest.setBrokerNameList(Lists.<String>newArrayList(TestConstant.TEST_BROKER_NAME));
    deleteSubGroupRequest.setGroupName(TEST_CREATE_DELETE_CONSUMER_GROUP);
    Assert.assertTrue(consumerService.deleteSubGroup(deleteSubGroupRequest));
    List<ConsumerConfigInfo> groupConsumeInfoList = consumerService.examineSubscriptionGroupConfig(TEST_CREATE_DELETE_CONSUMER_GROUP);
    Assert.assertTrue(CollectionUtils.isEmpty(groupConsumeInfoList));
}
Also used : ConsumerConfigInfo(org.apache.rocketmq.console.model.request.ConsumerConfigInfo) DeleteSubGroupRequest(org.apache.rocketmq.console.model.request.DeleteSubGroupRequest) Test(org.junit.Test) SpringBootTest(org.springframework.boot.test.context.SpringBootTest)

Aggregations

ConsumerConfigInfo (org.apache.rocketmq.console.model.request.ConsumerConfigInfo)1 DeleteSubGroupRequest (org.apache.rocketmq.console.model.request.DeleteSubGroupRequest)1 Test (org.junit.Test)1 SpringBootTest (org.springframework.boot.test.context.SpringBootTest)1