Search in sources :

Example 1 with FlushDbParser

use of org.apache.rocketmq.connect.redis.parser.FlushDbParser in project rocketmq-externals by apache.

the class ParserTest method testFlushDbParser.

@Test
public void testFlushDbParser() {
    String command = "FLUSHDB ASYNC";
    KVEntry builder = new FlushDbParser().parse(parseCommand(command));
    Assert.assertEquals("FLUSHDB", builder.getCommand());
    Assert.assertEquals("ASYNC", builder.getKey());
}
Also used : KVEntry(org.apache.rocketmq.connect.redis.pojo.KVEntry) FlushDbParser(org.apache.rocketmq.connect.redis.parser.FlushDbParser) Test(org.junit.Test)

Aggregations

FlushDbParser (org.apache.rocketmq.connect.redis.parser.FlushDbParser)1 KVEntry (org.apache.rocketmq.connect.redis.pojo.KVEntry)1 Test (org.junit.Test)1