use of org.apache.rocketmq.connect.redis.parser.MSetParser in project rocketmq-externals by apache.
the class ParserTest method testMSetParser.
@Test
public void testMSetParser() {
String command = "mset k1 v1 k2 v2";
KVEntry builder = new MSetParser().parse(parseCommand(command));
Assert.assertEquals("mset", builder.getCommand());
Assert.assertEquals("k1", builder.getKey());
Map<String, String> res = (Map<String, String>) builder.getValue();
Assert.assertEquals("v1", res.get("k1"));
Assert.assertEquals("v2", res.get("k2"));
}
Aggregations