!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:
parent
780831469c
commit
5bcb750441
17 changed files with 68 additions and 229 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue