Search in sources :

Example 1 with RPopParser

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

the class ParserTest method testRPopParser.

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

Aggregations

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