Testkit docs use deprecated messages (#24472)
We also had a deprecated method without implementing the alternative
This commit is contained in:
parent
f1aa12daf2
commit
6c7839f937
5 changed files with 25 additions and 15 deletions
|
|
@ -6,7 +6,6 @@ package jdocs.testkit;
|
|||
import static org.junit.Assert.*;
|
||||
|
||||
import akka.pattern.PatternsCS;
|
||||
import akka.testkit.*;
|
||||
import jdocs.AbstractJavaTest;
|
||||
import org.junit.Assert;
|
||||
import akka.japi.JavaPartialFunction;
|
||||
|
|
@ -198,7 +197,7 @@ public class TestKitDocTest extends AbstractJavaTest {
|
|||
final List<String> all = expectMsgAllOf("hello", "world");
|
||||
final int i = expectMsgClass(Integer.class);
|
||||
final Number j = expectMsgAnyClassOf(Integer.class, Long.class);
|
||||
expectNoMsg();
|
||||
expectNoMessage();
|
||||
//#test-expect
|
||||
getRef().tell("receveN-1", ActorRef.noSender());
|
||||
getRef().tell("receveN-2", ActorRef.noSender());
|
||||
|
|
@ -381,7 +380,7 @@ public class TestKitDocTest extends AbstractJavaTest {
|
|||
expectMsgEquals("hello");
|
||||
// ... but then the auto-pilot switched itself off
|
||||
probe.getRef().tell("world", getRef());
|
||||
expectNoMsg();
|
||||
expectNoMessage();
|
||||
}};
|
||||
//#test-auto-pilot
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue