Moving the InternalGetActor message to the companion object and verifying that it's possible to call apply from Java
This commit is contained in:
parent
b4d9486e63
commit
dcebd1deb2
2 changed files with 22 additions and 1 deletions
|
|
@ -0,0 +1,19 @@
|
|||
/**
|
||||
* Copyright (C) 2009-2012 Typesafe Inc. <http://www.typesafe.com>
|
||||
*/
|
||||
|
||||
package akka.testkit;
|
||||
|
||||
import org.junit.Test;
|
||||
import akka.actor.Props;
|
||||
|
||||
import static org.junit.Assert.*;
|
||||
|
||||
public class TestActorRefJavaSpec {
|
||||
|
||||
@Test
|
||||
public void shouldBeAbleToUseApply() {
|
||||
//Just a dummy call to make sure it compiles
|
||||
TestActorRef ref = TestActorRef.apply(new Props(), null);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue