Renamed startsWatching to watch, and stopsWatching to unwatch

This commit is contained in:
Patrik Nordwall 2011-12-06 09:59:52 +01:00
parent 3204269f6a
commit 7595e52bc9
13 changed files with 23 additions and 23 deletions

View file

@ -49,7 +49,7 @@ class TestActorRef[T <: Actor](
*
* @return the same ActorRef that is provided to it, to allow for cleaner invocations
*/
def startsWatching(subject: ActorRef): ActorRef = underlying.startsWatching(subject)
def watch(subject: ActorRef): ActorRef = underlying.watch(subject)
/**
* Deregisters this actor from being a death monitor of the provided ActorRef
@ -58,7 +58,7 @@ class TestActorRef[T <: Actor](
*
* @return the same ActorRef that is provided to it, to allow for cleaner invocations
*/
def stopsWatching(subject: ActorRef): ActorRef = underlying.stopsWatching(subject)
def unwatch(subject: ActorRef): ActorRef = underlying.unwatch(subject)
override def toString = "TestActor[" + address + "]"