Hi Gabriel,
On Thu, Dec 19, 2013 at 8:27 PM, Gabriel Raineri < [email protected]> wrote: > Hi everybody! > > I was wondering about the best way to test an actor that has a Receive > method with parameters. > > For example: > > def receive = { > case "StateA" => become(newState("A")) > case "StateB" => become(newState("B")) > } > > def newState(name: String): Receive { > ... > } > > Is there any way that I can assert the 'name' parameter when testing the > actor? > No, not without sending it a message and assert the expected response/behaviour. /Patrik > > Thanks in advance, > Gabriel > > -- > >>>>>>>>>> Read the docs: http://akka.io/docs/ > >>>>>>>>>> Check the FAQ: http://akka.io/faq/ > >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user > --- > You received this message because you are subscribed to the Google Groups > "Akka User List" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/akka-user. > For more options, visit https://groups.google.com/groups/opt_out. > -- Patrik Nordwall Typesafe <http://typesafe.com/> - Reactive apps on the JVM Twitter: @patriknw -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: http://akka.io/faq/ >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/groups/opt_out.
