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