Search in sources :

Example 1 with SortParser

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

the class ParserTest method testSortParser.

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

Aggregations

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