I want to test my akka actor. Is it possible to test every case of 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)
}