scala - akka actor testing using play -
I want to test my actor Is it possible to check every case to get the function?
def receive = {case msg: string => Println ("Success" + Message) Case User: VerifyIfUserExistActor = & gt; Built-in valetime timeout = timeout (30 seconds) val future = platActor? User Val Result = Wait Result (future, timeout. Duration) .asInstanceOf [user] Sender! Case of OTD Description: OTD Description = & gt; Println ("SUCCESS" + ott details)}
Yes, if you do test Want to send you a successful message and just want to see that your actor system works you can use
case _ = & gt; Println ("sending message success")
Comments
Post a Comment