Search in sources :

Example 1 with ScriptParser

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

the class ParserTest method testScriptParser.

@Test
public void testScriptParser() {
    String command = "Script";
    KVEntry builder = new ScriptParser().parse(parseCommand(command));
    Assert.assertEquals("Script", builder.getCommand());
}
Also used : KVEntry(org.apache.rocketmq.connect.redis.pojo.KVEntry) ScriptParser(org.apache.rocketmq.connect.redis.parser.ScriptParser) Test(org.junit.Test)

Aggregations

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