Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nashtech-labs/kafka-unit-testing.g8
A Sample application of Kafka Producer/Consumer API and its unit testing using Embedded Kafka.
https://github.com/nashtech-labs/kafka-unit-testing.g8
embedded-kafka kafka kafka-consumer kafka-producer unit-testing
Last synced: about 12 hours ago
JSON representation
A Sample application of Kafka Producer/Consumer API and its unit testing using Embedded Kafka.
- Host: GitHub
- URL: https://github.com/nashtech-labs/kafka-unit-testing.g8
- Owner: NashTech-Labs
- Created: 2018-04-25T16:30:02.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-04-27T16:14:48.000Z (over 6 years ago)
- Last Synced: 2024-10-24T02:30:23.451Z (13 days ago)
- Topics: embedded-kafka, kafka, kafka-consumer, kafka-producer, unit-testing
- Language: Scala
- Homepage:
- Size: 18.6 KB
- Stars: 1
- Watchers: 10
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
Awesome Lists containing this project
README
A [Giter8][g8] template for Sample application of Kafka Producer/Consumer API and its unit testing using Embedded Kafka.
**KAFKA-UNIT-TESTING**
A basic application to show use case of kafka producer and consumer, and to demonstrate unit testing of kafka using Embedded Kafka.
EmbeddedKafka is a library which gives us flexibility to unit test kafka. It will run zookeeper and kafka server itself before the test and stop it after test. For more info [refer](https://blog.knoldus.com/2017/07/09/unit-testing-of-kafka/)**How to setup ?**
**1) Clone the application**
` sbt new knoldus/kafka-unit-testing.g8`
**2) Compile the application**
`cd kafka-unit-testing`
`sbt clean compile `
**3) Test the application**
` sbt clean test`Template license
----------------
Written in 2018 byTo the extent possible under law, the author(s) have dedicated all copyright and related
and neighboring rights to this template to the public domain worldwide.
This template is distributed without any warranty. See .[g8]: http://www.foundweekends.org/giter8/