Search in sources :

Example 1 with FlushAllParser

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

the class ParserTest method testFlushAllParser.

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

Aggregations

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