make tryTell nice from Scala AND Java

Thanks, Derek Williams, for the good suggestion!
This commit is contained in:
Roland 2011-08-03 23:08:38 +02:00
parent a43418a4c3
commit 2aa86ed37a
5 changed files with 64 additions and 30 deletions

View file

@ -31,4 +31,10 @@ public class JavaAPI {
});
assertNotNull(ref);
}
@Test void mustAcceptSingleArgTryTell() {
ActorRef ref = Actors.actorOf(JavaAPITestActor.class);
ref.tryTell("hallo");
ref.tryTell("hallo", ref);
}
}