Skip to content

A Sample application of Kafka Producer/Consumer API and its unit testing using Embedded Kafka.

Notifications You must be signed in to change notification settings

NashTech-Labs/kafka-unit-testing.g8

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Giter8 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

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 by mahesh.kndpl@gmail.com

To 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 http://creativecommons.org/publicdomain/zero/1.0/.

About

A Sample application of Kafka Producer/Consumer API and its unit testing using Embedded Kafka.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages