Class TransformingProducerAdapter

  • All Implemented Interfaces:
    PubSubProducerAdapter

    public class TransformingProducerAdapter
    extends java.lang.Object
    implements PubSubProducerAdapter
    This PubSubProducerAdapter implementation allows tests to perform arbitrary transformations on the messages that are about to be written to Kafka. This can be used in unit tests to inject corrupt data.