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" + ottDetails)}    

Yes, if you want to test You are sending a successful message and just want to see that your actor system works you can use

  case _ => Println ("sending message success")    

Comments

Popular posts from this blog

java - NullPointerException for a 2d Array -

python - Assemble mpeg file unable to play in mediaplayer -

c# - NameSpace Manager or XsltContent to parse aspx page -