Search in sources :

Example 1 with DecrParser

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

the class ParserTest method testDecrParser.

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

Aggregations

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