2012-01-31 21:38:20 +01:00
|
|
|
/**
|
2018-01-04 17:26:29 +00:00
|
|
|
* Copyright (C) 2009-2018 Lightbend Inc. <https://www.lightbend.com>
|
2012-01-31 21:38:20 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
package akka.testkit;
|
|
|
|
|
|
2012-06-29 14:42:11 +02:00
|
|
|
import akka.actor.Actor;
|
2012-01-31 21:38:20 +01:00
|
|
|
import akka.actor.Props;
|
|
|
|
|
|
2012-02-01 11:53:46 +01:00
|
|
|
public class TestActorRefJavaCompile {
|
2012-01-31 21:38:20 +01:00
|
|
|
|
2012-02-01 11:53:46 +01:00
|
|
|
public void shouldBeAbleToCompileWhenUsingApply() {
|
2015-07-26 09:25:42 +01:00
|
|
|
//Just dummy calls to make sure it compiles
|
|
|
|
|
TestActorRef<Actor> ref = TestActorRef.create(null, Props.empty());
|
2012-06-29 14:42:11 +02:00
|
|
|
ref.toString();
|
2015-07-26 09:25:42 +01:00
|
|
|
TestActorRef<Actor> namedRef = TestActorRef.create(null, Props.empty(), "namedActor");
|
|
|
|
|
namedRef.toString();
|
|
|
|
|
TestActorRef<Actor> supervisedRef = TestActorRef.create(null, Props.empty(), ref);
|
|
|
|
|
supervisedRef.toString();
|
|
|
|
|
TestActorRef<Actor> namedSupervisedRef = TestActorRef.create(null, Props.empty(), ref, "namedActor");
|
|
|
|
|
namedSupervisedRef.toString();
|
2012-01-31 21:38:20 +01:00
|
|
|
}
|
2013-01-09 01:47:48 +01:00
|
|
|
}
|