Calculatorwhich does stateless arithmetic.
Accumulatorwhich statefully accumulates values passed to it.
CalculatorSpec unit tests show how to test actors. The
Calculator companion object also contains a
main function that is an example of how to use for-comprehension on futures. The
AccumulatorSpec unit tests show how to write unit tests which access an actor’s internals.
All I did was distill the testing chapter in Derek Wyatt’s book Akka Concurrency down into a couple files that contain the bare minimum of code needed to serve as a template. There’s nothing deep here, but it still makes for a convenient starting point. Clone away.