I have akka testkit (classic) and methods expectMsgAnyOf
and expectMsgAllOf
in TestKit
class, which let me check several messages:
"reply to a greeting" in {
labTestActor ! "greeting"
expectMsgAnyOf("hi", "hello")
}
"reply with favorite tech" in {
labTestActor ! "favoriteTech"
expectMsgAllOf("Scala", "Akka")
}
I want to rewrite these tests with Akka testkit typed but can't find these methods in TestKit
and TestProbe
classes. Could u help me to check the sequence of messages and any message.