Use Props factory methods in getting started tutorial (#25713)
* Use Props factory methods in getting started tutorial * deprecate Props.create without actorClass parameter, #25718
This commit is contained in:
parent
4b012cc306
commit
b89a7e5df5
17 changed files with 77 additions and 34 deletions
|
|
@ -195,7 +195,7 @@ public class ParentChildTest extends AbstractJavaTest {
|
|||
// didn't put final on these in order to make the parent fit in one line in the html docs
|
||||
//#test-fabricated-parent
|
||||
TestProbe proxy = new TestProbe(system);
|
||||
ActorRef parent = system.actorOf(Props.create(new FabricatedParentCreator(proxy)));
|
||||
ActorRef parent = system.actorOf(Props.create(Actor.class, new FabricatedParentCreator(proxy)));
|
||||
|
||||
proxy.send(parent, "ping");
|
||||
proxy.expectMsg("pong");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue