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