mockedstreams | Scala DSL for Unit-Testing Processing Topologies | Pub Sub library
kandi X-RAY | mockedstreams Summary
kandi X-RAY | mockedstreams Summary
Scala DSL for Unit-Testing Processing Topologies in Kafka Streams
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of mockedstreams
mockedstreams Key Features
mockedstreams Examples and Code Snippets
Community Discussions
Trending Discussions on mockedstreams
QUESTION
I am trying to unit test Kafka Stream with the MockedStreams library.
To test a simple example, I just want to convert string into upper case.
I try the code below :
...ANSWER
Answered 2018-Mar-31 at 15:49I've never used this MockedStreams library but the exception "[B cannot be cast to java.lang.String" means a byte array is being cast to a String. I suggest you try using the variant of builder.stream() method (inside the topology) that lets you explicitly specify the Serdes to use, as it seams the ones given to the input() method are not being used. I guess those are only used to serialize the test data onto the stream.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install mockedstreams
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page