/**
 * Copyright (C) 2009-2015 Typesafe Inc. <http://www.typesafe.com>
 */

package akka.testkit;

import akka.actor.Actor;
import akka.actor.Props;

public class TestActorRefJavaCompile {

  public void shouldBeAbleToCompileWhenUsingApply() {
  	//Just dummy calls to make sure it compiles
    TestActorRef<Actor> ref = TestActorRef.create(null, Props.empty());
    ref.toString();
    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();
  }
}
