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