Registry / testing / akka-stream-testkit-2-13

akka-stream-testkit-2-13

JSON →
library2.8.8javamavenunverified

Akka is a toolkit for building highly concurrent, distributed, and resilient message-driven applications for Java and Scala.

<dependency> <groupId>com.typesafe.akka</groupId> <artifactId>akka-stream-testkit_2.13</artifactId> <version>2.8.8</version> </dependency>
INSTALL
IMPORT
SIG · AKKA-STREAM-TESTKI
A
akka-stream-testkit-2-13
testingjavav2.8.8
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

TestSink
akka.stream.testkit.scaladsl.TestSink

Tests a simple Akka Stream source using TestSink to verify emitted elements.

import akka.actor.ActorSystem import akka.stream.ActorMaterializer import akka.stream.scaladsl.Source import akka.stream.testkit.scaladsl.TestSink object Quickstart extends App { implicit val system = ActorSystem("test") implicit val materializer = ActorMaterializer() Source.single(42) .runWith(TestSink.probe[Int]) .request(1) .expectNext(42) .expectComplete() }
Debug
Known issues
breakingAkka Stream Testkit requires an implicit ActorMaterializer which is deprecated in Akka 2.6+.
fix
Use akka.stream.SystemMaterializer(system).materializer instead of ActorMaterializer.
affects: >=2.6.0
Upgrade
Version history
2.8.8latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
46 hits · last 30 days
node
40
OpenAI (training)
1
Resources