Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using ScalaTest to test akka actors

I am struggling to find any ScalaTest samples written using FunSuite testing an akka actor.

I appreciate if somebody could provide a simple scalatest example testing a simple akka actor.

like image 700
Ali Salehi Avatar asked May 12 '12 11:05

Ali Salehi


1 Answers

Akka is very well documented. You can find the documentation here. Here is the link to the Testing Actor Systems (Scala) chapter, which comes with an example.

Note: The full example uses a ScalaTest WordSpec. For a FunSuite example, change WordSpec to FunSuite and write tests with test("test name") rather than WordSpec's should/in style. All else will be identical to the example shown.

like image 193
agilesteel Avatar answered Sep 20 '22 09:09

agilesteel