use of org.apache.rocketmq.connect.redis.parser.ZPopMinParser in project rocketmq-externals by apache.
the class ParserTest method testZPopMinParser.
@Test
public void testZPopMinParser() {
String command = "ZPOPMIN key 100";
KVEntry builder = new ZPopMinParser().parse(parseCommand(command));
Assert.assertEquals("ZPOPMIN", builder.getCommand());
Assert.assertEquals("key", builder.getKey());
Assert.assertTrue(100L == builder.getParam(Options.REDIS_COUNT));
}
Aggregations