use of org.apache.rocketmq.connect.redis.parser.ZRemParser in project rocketmq-externals by apache.
the class ParserTest method testZRemParser.
@Test
public void testZRemParser() {
String command = "ZRem key m1 m2";
KVEntry builder = new ZRemParser().parse(parseCommand(command));
Assert.assertEquals("ZRem", builder.getCommand());
Assert.assertEquals("key", builder.getKey());
List<String> res = (List<String>) builder.getValue();
Assert.assertEquals(2, res.size());
Assert.assertEquals("m1", res.get(0));
Assert.assertEquals("m2", res.get(1));
}
Aggregations