DOC: Routing (Java). See #1600

This commit is contained in:
Patrik Nordwall 2012-01-05 17:59:19 +01:00
parent a8c6a0d891
commit ed2b65c402
13 changed files with 670 additions and 76 deletions

View file

@ -5,7 +5,7 @@ package akka.routing
import java.util.concurrent.atomic.AtomicInteger
import akka.actor._
import collection.mutable.LinkedList
import scala.collection.mutable.LinkedList
import akka.testkit._
import akka.util.duration._
import akka.dispatch.Await
@ -33,8 +33,6 @@ object RoutingSpec {
@org.junit.runner.RunWith(classOf[org.scalatest.junit.JUnitRunner])
class RoutingSpec extends AkkaSpec with DefaultTimeout with ImplicitSender {
val impl = system.asInstanceOf[ActorSystemImpl]
import akka.routing.RoutingSpec._
"routers in general" must {
@ -399,7 +397,7 @@ class RoutingSpec extends AkkaSpec with DefaultTimeout with ImplicitSender {
}
"count votes as intended - not as in Florida" in {
val routedActor = system.actorOf(Props[TestActor].withRouter(VoteCountRouter))
val routedActor = system.actorOf(Props().withRouter(VoteCountRouter))
routedActor ! DemocratVote
routedActor ! DemocratVote
routedActor ! RepublicanVote