use of org.apache.rocketmq.console.model.request.ResetOffsetRequest in project rocketmq-externals by apache.
the class ConsumerServiceImplTest method resetOffset.
@Test
public void resetOffset() throws Exception {
ResetOffsetRequest resetOffsetRequest = new ResetOffsetRequest();
resetOffsetRequest.setConsumerGroupList(Lists.<String>newArrayList(TEST_CONSUMER_GROUP));
resetOffsetRequest.setForce(true);
resetOffsetRequest.setTopic(TEST_CONSOLE_TOPIC);
resetOffsetRequest.setResetTime(System.currentTimeMillis() - 1000);
Map<String, ConsumerGroupRollBackStat> /*consumerGroup*/
consumerGroupRollBackStatMap = consumerService.resetOffset(resetOffsetRequest);
Assert.assertNotNull(consumerGroupRollBackStatMap);
Assert.assertNotNull(consumerGroupRollBackStatMap.get(TEST_CONSUMER_GROUP));
}
Aggregations