Search in sources :

Example 1 with LPushXParser

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

the class ParserTest method testLPushXParser.

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

Aggregations

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