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