Initial breakout of ActorInstance. See #1195

This commit is contained in:
Peter Vlugter 2011-09-15 08:12:07 +02:00
parent b94d1cee36
commit b96f3d9260
30 changed files with 838 additions and 762 deletions

View file

@ -25,14 +25,14 @@ class TestActorRef[T <: Actor](props: Props, address: String) extends LocalActor
* thrown will be available to you, while still being able to use
* become/unbecome and their message counterparts.
*/
def apply(o: Any) { actorInstance.get().apply(o) }
def apply(o: Any) { underlyingActorInstance.apply(o) }
/**
* Retrieve reference to the underlying actor, where the static type matches the factory used inside the
* constructor. Beware that this reference is discarded by the ActorRef upon restarting the actor (should this
* reference be linked to a supervisor). The old Actor may of course still be used in post-mortem assertions.
*/
def underlyingActor: T = actorInstance.get().asInstanceOf[T]
def underlyingActor: T = underlyingActorInstance.asInstanceOf[T]
override def toString = "TestActor[" + address + ":" + uuid + "]"