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));
}
Aggregations