use of org.apache.rocketmq.connect.redis.parser.LRemParser in project rocketmq-externals by apache.
the class ParserTest method testLRemParser.
@Test
public void testLRemParser() {
String command = "LRem key 100 value";
KVEntry builder = new LRemParser().parse(parseCommand(command));
Assert.assertEquals("LRem", builder.getCommand());
Assert.assertEquals("key", builder.getKey());
Assert.assertEquals("value", builder.getValue());
Assert.assertTrue(100L == builder.getParam(Options.REDIS_COUNT));
}
Aggregations