Click or drag to resize

SupportListener Methods

The SupportListener type exposes the following members.

Methods
  NameDescription
Public methodAssertGetAndResetIRPair
Asserts that there is exactly one insert-stream event and one remove-stream event available and resets.
Public methodAssertInvokedAndReset
Returns a pair of insert and remove stream event arrays considering the last invocation only, asserting that only a single invocation occured, and resetting the listener.
Public methodAssertInvokedFlagAndReset
Assert the invoked-flag against the expected value and reset the flag
Public methodAssertNewOldData
Asserts name-value pairs of insert and remove stream events
Public methodAssertOneGetNew
Asserts that exactly one insert stream event was received not checking remove stream data, and returns the received event.
Public methodAssertOneGetNewAndReset
Asserts that exactly one insert stream event was received and no remove stream events, resets the listener clearing all state and returns the received event.
Public methodAssertOneGetOld
Asserts that exactly one remove stream event was received not checking insert stream data, and returns the received event.
Public methodAssertOneGetOldAndReset
Asserts that exactly one remove stream event was received and no insert stream events, resets the listener clearing all state and returns the received event.
Public methodAssertPairGetIRAndReset
Asserts that exactly one insert stream event and exactly one remove stream event was received, resets the listener clearing all state and returns the received events as a pair.
Public methodGetAndClearIsInvoked
Returns true if the listener was invoked at least once and clears the invocation flag.
Public methodGetAndResetDataListsFlattened
Returns a pair of insert and remove stream event arrays considering the all invocations, and resets the listener.
Public methodGetAndResetIRPair
Returns a pair of last-invocation insert and remove stream events and resets
Public methodGetAndResetLastNewData
Returns the last array of events (insert stream) that were received and resets the listener.
Public methodGetAndResetLastOldData
Returns the last array of events (insert stream) that were received and resets the listener.
Public methodIsInvokedAndReset
Returns true if the listener was invoked at least once and clears the invocation flag.
Public methodReset
Reset listener, clearing all associated state.
Public methodUpdate
Notify that new events are available or old events are removed.

If the call to Update contains new (inserted) events, then the first argument will be a non-empty list and the second will be empty. Similarly, if the call is a notification of deleted events, then the first argument will be empty and the second will be non-empty.

Either the newEvents or oldEvents will be non-null. This method won't be called with both arguments being null, (unless using output rate limiting or force-output options), but either one could be null. The same is true for zero-length arrays.

Either newEvents or oldEvents will be non-empty. This method won't be called with both arguments being null (unless using output rate limiting or force-output options), but either one could be null. The same is true for zero-length arrays. Either newEvents or oldEvents will be non-empty.If both are non-empty, then the update is a modification.

(Inherited from UpdateListener.)
Public methodWaitForInvocation
Wait for the listener invocation for up to the given number of milliseconds.
Top
See Also