Hi Pablo, Glad that you figured it out. Nevertheless, Akka comes with a TestKit that allows you to create temporary "actors" called Probes which simplify testing quite a lot: http://doc.akka.io/docs/akka/2.4.0/scala/testing.html
-Endre On Tue, Nov 24, 2015 at 1:08 PM, Pablo Souza <[email protected]> wrote: > I found the solution and create a listner and sender actors and everything > works fine. > > > Em domingo, 22 de novembro de 2015 07:39:52 UTC-3, Pablo Souza escreveu: >> >> It's my first day with Akka and a have to make somes tests with UDP. I'm >> using exactaly this code >> <http://doc.akka.io/docs/akka/2.4.0/java/io-udp.html>, in Java, without >> any personal changes, but I don't know how to test it. >> >> How can i make test with this code? >> >> >> I tried to make a Main class to test it, with ActorSystem, ActorRef, etc, >> but it seems that don't work. I don't know for example wich Manager i have >> to pass on Server parameter. I'm completely lost. >> > -- > >>>>>>>>>> Read the docs: http://akka.io/docs/ > >>>>>>>>>> Check the FAQ: > http://doc.akka.io/docs/akka/current/additional/faq.html > >>>>>>>>>> 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/d/optout. > -- Akka Team Typesafe - Reactive apps on the JVM Blog: letitcrash.com Twitter: @akkateam -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> 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/d/optout.
