February 2018
Intermediate to advanced
552 pages
13h 46m
English
As we discussed in Chapter 4, Building Reactive Applications with Akka, Akka extensions (or modules) section, the Akka Toolkit has the following two modules for unit testing purposes:
actor-testkit akka-stream-testkit
The actor-testkit module is useful to test Akka's Actors, and the akka-stream-testkit module is useful for testing the components of the Akka Stream's API.
In this section, we will discuss how to test Actors using the actor-testkit module, and in the next section, we will also discuss how to test the components of Akka Streams using the akka-stream-testkit module. In addition to Actor Testkit, we will use the ScalaTest unit testing framework.
As we know, we have developed a couple of Akka Actor's ...