Search in sources :

Example 1 with XSetIdParser

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

the class ParserTest method testXSetIdParser.

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

Aggregations

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