Testing an actor using the game

I want to try out my aka aka. Is it possible to check every case of the receive function?

def receive = { case msg: String => println("SUCCESS" + msg) case user: VerifyIfUserExistActor => implicit val timeout = Timeout(30 seconds) val future = platActor ? user val result = Await.result(future, timeout.duration).asInstanceOf[Users] sender ! result case ottDetails: OttDetails => println("SUCCESS" + ottDetails) } 
+4
source share
1 answer

Yes, if you want to check if a successful message is being sent, and you just want your acting system to work. you can use

 case _ => println("sending message success") 
0
source

All Articles