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());
}
Aggregations