4 Akka test kit
This chapter covers
- Testing actors with the Akka test kit
- Testing synchronous scenarios
- Testing asynchronous scenarios
When testing is limited to a single component, anyone can test quickly. But when testing includes integrations, ease and speed are usually lost. Actors provide an interesting solution to this problem for the following reasons:
-
Actors fit in with Behavior Driven Development (BDD) because they embody behavior as a fundamental primitive.
-
Actors come in systems and are therefore fundamentally built on integration.
-
Actors are based on messaging, which has huge advantages for testing because you can simulate any behaviors by sending messages.
In this chapter, you learn two methods for testing actors. On the ...
Get Akka in Action, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.