Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
1.1.0
-
None
Description
When testing a Kafka stream we need the TopologyTestDriver.createOutputTopic to take record headers into account.
Is it possible to use the record headers when deserialising when using the TopologyTestDriver.createOutputTopic?
The only thing that needs to change is:
final K key = keyDeserializer.deserialize(record.topic(), record.key()); final V value = valueDeserializer.deserialize(record.topic(), record.value());
into:
final K key = keyDeserializer.deserialize(record.topic(), record.headers(), record.key()); final V value = valueDeserializer.deserialize(record.topic(), record.headers(), record.value());
Attachments
Issue Links
- links to