Search in sources :

Example 1 with RPopLPushParser

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

the class ParserTest method testRPopLPushParser.

@Test
public void testRPopLPushParser() {
    String command = "RPOPLPUSH source destination";
    KVEntry builder = new RPopLPushParser().parse(parseCommand(command));
    Assert.assertEquals("RPOPLPUSH", builder.getCommand());
    Assert.assertEquals("source", builder.getKey());
    Assert.assertEquals("destination", builder.getValue());
}
Also used : KVEntry(org.apache.rocketmq.connect.redis.pojo.KVEntry) RPopLPushParser(org.apache.rocketmq.connect.redis.parser.RPopLPushParser) Test(org.junit.Test)

Aggregations

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