use of org.apache.rocketmq.connect.redis.parser.LPushXParser in project rocketmq-externals by apache.
the class ParserTest method testLPushXParser.
@Test
public void testLPushXParser() {
String command = "LPUSHX key value";
KVEntry builder = new LPushXParser().parse(parseCommand(command));
Assert.assertEquals("LPUSHX", builder.getCommand());
Assert.assertEquals("key", builder.getKey());
Assert.assertEquals("value", builder.getValue());
}
Aggregations