Search in sources :

Example 1 with LPopParser

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

the class ParserTest method testLPopParser.

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

Aggregations

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