use of org.apache.rocketmq.connect.redis.parser.BrPopLPushParser in project rocketmq-externals by apache.
the class ParserTest method testBrPopLPushParser.
@Test
public void testBrPopLPushParser() {
String command = "BRPOPLPUSH source destination 500";
KVEntry builder = new BrPopLPushParser().parse(parseCommand(command));
Assert.assertEquals("BRPOPLPUSH", builder.getCommand());
Assert.assertEquals("source", builder.getKey());
Assert.assertEquals("destination", builder.getValue());
Assert.assertTrue(500L == builder.getParam(Options.REDIS_TIMEOUT));
}
Aggregations