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