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