Search in sources :

Example 1 with PersistParser

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

the class ParserTest method testPersistParser.

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

Aggregations

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