TestKitBaseExpectMsgFrom Method |
Name | Description | |
---|---|---|
ExpectMsgFromT(IActorRef, NullableTimeSpan, String) |
Receive one message from the test actor and assert that it is of the specified type
and was sent by the specified sender
Wait time is bounded by the given duration if specified.
If not specified, wait time is bounded by remaining time for execution of the innermost enclosing 'within'
block, if inside a 'within' block; otherwise by the config value
"akka.test.single-expect-default".
| |
ExpectMsgFromT(IActorRef, ActionT, NullableTimeSpan, String) |
Receive one message of the specified type from the test actor, verifies that the sender is the specified
and calls the action that performs extra assertions.
Wait time is bounded by the given duration if specified.
If not specified, wait time is bounded by remaining time for execution of the innermost enclosing 'within'
block, if inside a 'within' block; otherwise by the config value
"akka.test.single-expect-default".
Use this variant to implement more complicated or conditional processing.
| |
ExpectMsgFromT(IActorRef, PredicateT, NullableTimeSpan, String) |
Receive one message of the specified type from the test actor and assert that the given
predicate accepts it and was sent by the specified sender
Wait time is bounded by the given duration if specified.
If not specified, wait time is bounded by remaining time for execution of the innermost enclosing 'within'
block, if inside a 'within' block; otherwise by the config value
"akka.test.single-expect-default".
Use this variant to implement more complicated or conditional processing.
| |
ExpectMsgFromT(IActorRef, T, NullableTimeSpan, String) |
Receive one message of the specified type from the test actor and assert that it
equals the message and was sent by the specified sender
Wait time is bounded by the given duration if specified.
If not specified, wait time is bounded by remaining time for execution of the innermost enclosing 'within'
block, if inside a 'within' block; otherwise by the config value
"akka.test.single-expect-default".
| |
ExpectMsgFromT(ActionIActorRef, ActionT, NullableTimeSpan, String) |
Receive one message of the specified type from the test actor and calls the
action that performs extra assertions.
Wait time is bounded by the given duration if specified.
If not specified, wait time is bounded by remaining time for execution of the innermost enclosing 'within'
block, if inside a 'within' block; otherwise by the config value
"akka.test.single-expect-default".
Use this variant to implement more complicated or conditional processing.
| |
ExpectMsgFromT(PredicateIActorRef, PredicateT, NullableTimeSpan, String) |
Receive one message of the specified type from the test actor and assert that the given
predicate accepts it and was sent by a sender that matches the isSender predicate.
Wait time is bounded by the given duration if specified.
If not specified, wait time is bounded by remaining time for execution of the innermost enclosing 'within'
block, if inside a 'within' block; otherwise by the config value
"akka.test.single-expect-default".
Use this variant to implement more complicated or conditional processing.
|