Search in sources :

Example 1 with XGroupParser

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

the class ParserTest method testXGroupParser.

@Test
public void testXGroupParser() {
    String command = "XGroup [CREATE key groupname id-or-$] [SETID key id-or-$] [DESTROY key groupname] [DELCONSUMER key groupname consumername]";
    KVEntry builder = new XGroupParser().parse(parseCommand(command));
    Assert.assertEquals("XGroup", builder.getCommand());
}
Also used : KVEntry(org.apache.rocketmq.connect.redis.pojo.KVEntry) XGroupParser(org.apache.rocketmq.connect.redis.parser.XGroupParser) Test(org.junit.Test)

Aggregations

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