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

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -