Testkit docs use deprecated messages (#24472)

We also had a deprecated method without implementing
the alternative
This commit is contained in:
Christopher Batey 2018-02-02 09:12:01 +00:00 committed by Konrad `ktoso` Malawski
parent f1aa12daf2
commit 6c7839f937
5 changed files with 25 additions and 15 deletions

View file

@ -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
}