You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-5Lines changed: 4 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,5 @@
1
1
# scalatest-embedded-kafka
2
-
A library that provides an in-memory Kafka broker to run your ScalaTest specs against. It uses Kafka 0.11.0.0 and ZooKeeper 3.4.9.
3
-
4
-
The version supporting Kafka 0.8.x can be found [here](https://github.com/manub/scalatest-embedded-kafka/tree/kafka-0.8) - *this is no longer actively supported, although I'll be happy to accept PRs and produce releases.*
2
+
A library that provides an in-memory Kafka broker to run your ScalaTest specs against. It uses Kafka 1.0.0 and ZooKeeper 3.4.10.
5
3
6
4
Inspired by https://github.com/chbatey/kafka-unit
7
5
@@ -21,10 +19,11 @@ scalatest-embedded-kafka is available on Bintray and Maven Central, compiled for
21
19
* Scala 2.10 is supported until `0.10.0`
22
20
* Scala 2.11 is supported for all versions
23
21
* Scala 2.12 is supported from `0.11.0`.
22
+
24
23
25
24
### How to use
26
25
27
-
* In your `build.sbt` file add the following dependency: `"net.manub" %% "scalatest-embedded-kafka" % "0.16.0" % "test"`
26
+
* In your `build.sbt` file add the following dependency: `"net.manub" %% "scalatest-embedded-kafka" % "1.0.0" % "test"`
28
27
* Have your `Spec` extend the `EmbeddedKafka` trait.
29
28
* Enclose the code that needs a running instance of Kafka within the `withRunningKafka` closure.
30
29
```scala
@@ -186,7 +185,7 @@ It takes care of instantiating and starting your streams as well as closing them
186
185
187
186
###How to use
188
187
189
-
*In your `build.sbt` file add the following dependency: `"net.manub" %% "scalatest-embedded-kafka-streams" % "0.15.1" % "test"`
188
+
*In your `build.sbt` file add the following dependency: `"net.manub" %% "scalatest-embedded-kafka-streams" % "1.0.0" % "test"`
190
189
*Have a look at the [example test](kafka-streams/src/test/scala/net/manub/embeddedkafka/streams/ExampleKafkaStreamsSpec.scala)
191
190
*For most of the cases have your `Spec` extend the `EmbeddedKafkaStreamsAllInOne` trait. This offers both streams management and easy creation of consumers for asserting resulting messages in output/sink topics.
192
191
*If you only want to use the streams management without the test consumers just have the `Spec` extend the `EmbeddedKafkaStreams` trait.
0 commit comments