use of org.apache.rocketmq.connect.redis.parser.SetNxParser in project rocketmq-externals by apache.
the class ParserTest method testSetNxParser.
@Test
public void testSetNxParser() {
String command = "SETNX a b";
KVEntry builder = new SetNxParser().parse(parseCommand(command));
Assert.assertEquals("SETNX", builder.getCommand());
Assert.assertEquals("a", builder.getKey());
Assert.assertEquals("b", builder.getValue());
}
Aggregations