Asserts that a subscription has been received or will be received
Fluent DSL
Fluent DSL
Expect completion.
Fluent DSL
Fluent DSL
Expect given Throwable.
Expect and return the signalled Throwable.
Expect and return the signalled Throwable.
Fluent DSL
Fluent DSL
Expect SubscriberEvent (any of: OnSubscribe
, OnNext
, OnError
or OnComplete
).
Expect and return SubscriberEvent (any of: OnSubscribe
, OnNext
, OnError
or OnComplete
).
Expect and return SubscriberEvent (any of: OnSubscribe
, OnNext
, OnError
or OnComplete
).
Expect and return SubscriberEvent (any of: OnSubscribe
, OnNext
, OnError
or OnComplete
).
Expect and return SubscriberEvent (any of: OnSubscribe
, OnNext
, OnError
or OnComplete
).
Fluent DSL
Fluent DSL
Expect multiple stream elements.
Fluent DSL
Fluent DSL
Expect a stream element during specified time or timeout.
Fluent DSL
Fluent DSL
Expect a stream element.
Expect and return a stream element during specified time or timeout.
Expect and return a stream element during specified time or timeout.
Expect and return a stream element.
Expect and return a stream element.
Expect a stream element during specified time or timeout and test it with partial function.
Expect a stream element during specified time or timeout and test it with partial function.
Allows chaining probe methods.
Expect a stream element during specified time or timeout and test it with partial function.
Expect a stream element during specified time or timeout and test it with partial function.
Allows chaining probe methods.
wait no more than max time, otherwise throw AssertionError
Fluent DSL Expect the given elements to be signalled in order.
Fluent DSL Expect the given elements to be signalled in order.
Expect and return the next n
stream elements.
Expect and return the next n
stream elements.
Fluent DSL
Fluent DSL
Expect given next element or stream completion.
Expect next element or stream completion - returning whichever was signalled.
Expect next element or stream completion - returning whichever was signalled.
Fluent DSL Expect given next element or error signal.
Fluent DSL Expect given next element or error signal.
Fluent DSL
Fluent DSL
Expect given next element or error signal, returning whichever was signalled.
Expect a stream element and test it with partial function.
Expect a stream element and test it with partial function.
Fluent DSL
Fluent DSL
Expect multiple stream elements in arbitrary order.
Fluent DSL Expect the given elements to be signalled in any order.
Fluent DSL Expect the given elements to be signalled in any order.
Expect a stream element and test it with partial function.
Expect a stream element and test it with partial function.
wait no more than max time, otherwise throw AssertionError
Java API: Assert that no message is received for the specified time.
Java API: Assert that no message is received for the specified time.
Fluent DSL
Fluent DSL
Assert that no message is received for the specified time.
Expect and return a org.reactivestreams.Subscription.
Expect and return a org.reactivestreams.Subscription.
Fluent DSL
Fluent DSL
Expect subscription followed by immediate stream completion.
Depending on the signalDemand
parameter demand may be signalled immediately after obtaining the subscription
in order to wake up a possibly lazy upstream. You can disable this by setting the signalDemand
parameter to false
.
See also #expectSubscriptionAndComplete.
Fluent DSL
Fluent DSL
Expect subscription followed by immediate stream completion.
By default 1
demand will be signalled in order to wake up a possibly lazy upstream
See also Boolean) if no demand should be signalled.
Fluent DSL
Fluent DSL
Expect subscription followed by immediate stream completion.
By default 1
demand will be signalled in order to wake up a possibly lazy upstream
See also Throwable).
Fluent DSL
Fluent DSL
Expect subscription followed by immediate stream completion.
By default 1
demand will be signalled in order to wake up a possibly lazy upstream.
See also Throwable, signalDemand: Boolean) if no demand should be signalled.
Expect subscription to be followed immediately by an error signal.
Expect subscription to be followed immediately by an error signal.
Depending on the signalDemand
parameter demand may be signalled immediately after obtaining the subscription
in order to wake up a possibly lazy upstream. You can disable this by setting the signalDemand
parameter to false
.
See also #expectSubscriptionAndError().
Expect subscription to be followed immediately by an error signal.
Expect subscription to be followed immediately by an error signal.
By default 1
demand will be signalled in order to wake up a possibly lazy upstream.
See also #expectSubscriptionAndError(Boolean) if no demand should be signalled.
Receive messages for a given duration or until one does not match a given partial function.
Receive messages for a given duration or until one does not match a given partial function.
Drains a given number of messages
Drains a given number of messages
Request and expect a stream element during the specified time or timeout.
Request and expect a stream element.
Request and expect a stream element.
Attempt to drain the stream into a strict collection (by requesting Long.MaxValue
elements).
Attempt to drain the stream into a strict collection (by requesting Long.MaxValue
elements).
Use with caution: Be warned that this may not be a good idea if the stream is infinite or its elements are very large!
Same as calling within(0 seconds, max)(f)
.
Same as calling within(0 seconds, max)(f)
.
Execute code block while bounding its execution time between min
and
max
.
Execute code block while bounding its execution time between min
and
max
. within
blocks may be nested. All methods in this trait which
take maximum wait times are available in a version which implicitly uses
the remaining time governed by the innermost enclosing within
block.
Note that the timeout is scaled using Duration.dilated, which uses the configuration entry "akka.test.timefactor", while the min Duration is not.
val ret = within(50 millis) { test ! "ping" expectMsgClass(classOf[String]) }
Fluent DSL
Fluent DSL
Assert that no message is received for the specified time. NOTE! Timeout value is automatically multiplied by timeFactor.
(Since version 2.5.5) Use expectNoMessage instead
Fluent DSL
Fluent DSL
Same as expectNoMsg(remaining)
, but correctly treating the timeFactor.
NOTE! Timeout value is automatically multiplied by timeFactor.
(Since version 2.5.5) Use expectNoMessage instead
Single subscription tracking for ManualProbe.