!act,doc,rem,tes 3823 remove deprecated Props methods

- rewrite deprecated usages to their recommended counterparts
- TestActorRef now verifies mailbox requirements
- CallingThreadMailbox now exposes proper messageQueue type for
  inspection
This commit is contained in:
Roland Kuhn 2014-01-17 09:12:44 +01:00
parent 780831469c
commit 5bcb750441
17 changed files with 68 additions and 229 deletions

View file

@ -48,14 +48,18 @@ public class JavaAPI {
ActorRef ref = system.actorOf(Props.create(JavaAPITestActor.class));
assertNotNull(ref);
}
@Test
public void mustBeAbleToCreateActorRefFromFactory() {
ActorRef ref = system.actorOf(Props.empty().withCreator(new Creator<Actor>() {
public static Props mkProps() {
return Props.create(new Creator<Actor>() {
public Actor create() {
return new JavaAPITestActor();
}
}));
});
}
@Test
public void mustBeAbleToCreateActorRefFromFactory() {
ActorRef ref = system.actorOf(mkProps());
assertNotNull(ref);
}