use of org.apache.rocketmq.connect.redis.parser.SMoveParser in project rocketmq-externals by apache.
the class ParserTest method testSMoveParser.
@Test
public void testSMoveParser() {
String command = "SMOVE source destination member";
KVEntry builder = new SMoveParser().parse(parseCommand(command));
Assert.assertEquals("SMOVE", builder.getCommand());
Assert.assertEquals("source", builder.getKey());
List<String> res = (List<String>) builder.getValue();
Assert.assertEquals(2, res.size());
Assert.assertEquals("destination", res.get(0));
Assert.assertEquals("member", res.get(1));
}
Aggregations