Merge branch 'master' into wip-1581-patterns-ask

This commit is contained in:
Roland 2012-01-20 19:29:17 +01:00
commit 34a0f005b1
306 changed files with 1384 additions and 731 deletions

View file

@ -1,5 +1,5 @@
/**
* Copyright (C) 2009-2011 Typesafe Inc. <http://www.typesafe.com>
* Copyright (C) 2009-2012 Typesafe Inc. <http://www.typesafe.com>
*/
package akka.testkit
@ -31,7 +31,9 @@ class TestActorRef[T <: Actor](
name: String)
extends LocalActorRef(
_system,
_props.withDispatcher(CallingThreadDispatcher.Id),
_props.withDispatcher(
if (_props.dispatcher == Dispatchers.DefaultDispatcherId) CallingThreadDispatcher.Id
else _props.dispatcher),
_supervisor,
_supervisor.path / name,
false) {
@ -59,7 +61,7 @@ class TestActorRef[T <: Actor](
* thrown will be available to you, while still being able to use
* become/unbecome.
*/
def apply(o: Any) { underlyingActor.apply(o) }
def receive(o: Any) { underlyingActor.apply(o) }
/**
* Retrieve reference to the underlying actor, where the static type matches the factory used inside the