Search in sources :

Example 1 with IncrParser

use of org.apache.rocketmq.connect.redis.parser.IncrParser in project rocketmq-externals by apache.

the class ParserTest method testIncrParser.

@Test
public void testIncrParser() {
    String command = "INCR key";
    KVEntry builder = new IncrParser().parse(parseCommand(command));
    Assert.assertEquals("INCR", builder.getCommand());
    Assert.assertEquals("key", builder.getKey());
}
Also used : IncrParser(org.apache.rocketmq.connect.redis.parser.IncrParser) KVEntry(org.apache.rocketmq.connect.redis.pojo.KVEntry) Test(org.junit.Test)

Aggregations

IncrParser (org.apache.rocketmq.connect.redis.parser.IncrParser)1 KVEntry (org.apache.rocketmq.connect.redis.pojo.KVEntry)1 Test (org.junit.Test)1