TestKitBaseExpectMsg Method |
Name | Description | |
---|---|---|
ExpectMsgT(NullableTimeSpan, String) |
Receive one message from the test actor and assert that it is of the specified type.
Wait time is bounded by the given duration, if specified; otherwise
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".
| |
ExpectMsgT(ActionT, NullableTimeSpan, String) |
Receive one message of the specified type from the test actor and calls the
action that performs extra assertions.
Use this variant to implement more complicated or conditional processing.
Wait time is bounded by the given duration, if specified; otherwise
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".
| |
ExpectMsgT(PredicateT, NullableTimeSpan, String) |
Receive one message of the specified type from the test actor and assert that the given
predicate accepts it.
Use this variant to implement more complicated or conditional processing.
Wait time is bounded by the given duration, if specified; otherwise
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".
| |
ExpectMsgT(T, NullableTimeSpan, String) |
Receive one message of the specified type from the test actor and assert that it
equals the message.
Wait time is bounded by the given duration, if specified; otherwise
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".
| |
ExpectMsgT(ActionT, IActorRef, NullableTimeSpan, String) |
Receive one message of the specified type from the test actor calls the
action that performs extra assertions.
Use this variant to implement more complicated or conditional processing.
Wait time is bounded by the given duration, if specified; otherwise
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".
| |
ExpectMsgT(FuncT, IActorRef, Boolean, NullableTimeSpan, String) |
Receive one message of the specified type from the test actor and assert that the given
predicate accepts it.
Use this variant to implement more complicated or conditional processing.
Wait time is bounded by the given duration, if specified; otherwise
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".
| |
ExpectMsgT(T, FuncT, T, Boolean, NullableTimeSpan, String) |
Receive one message from the test actor and assert that it is equal to the expected value,
according to the specified comparer function.
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".
|