use of org.apache.rocketmq.flink.common.serialization.KeyValueSerializationSchema in project rocketmq-externals by apache.
the class RocketMQSinkTest method setUp.
@Before
public void setUp() throws Exception {
KeyValueSerializationSchema serializationSchema = new SimpleKeyValueSerializationSchema("id", "name");
TopicSelector topicSelector = new DefaultTopicSelector("tpc");
Properties props = new Properties();
rocketMQSink = new RocketMQSink(serializationSchema, topicSelector, props);
producer = mock(DefaultMQProducer.class);
setFieldValue(rocketMQSink, "producer", producer);
}
Aggregations