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