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