use of org.apache.rocketmq.connect.redis.parser.RenameParser in project rocketmq-externals by apache.
the class ParserTest method testRenameParser.
@Test
public void testRenameParser() {
String command = "RENAME key newkey";
KVEntry builder = new RenameParser().parse(parseCommand(command));
Assert.assertEquals("RENAME", builder.getCommand());
Assert.assertEquals("key", builder.getKey());
Assert.assertEquals("newkey", builder.getValue());
}
Aggregations