-
Notifications
You must be signed in to change notification settings - Fork 7.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2.x: Clarify TestObserver.assertValueSet in docs and via tests #6152
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -565,9 +565,14 @@ public final U assertValuesOnly(T... values) { | |
} | ||
|
||
/** | ||
* Assert that the TestObserver/TestSubscriber received only the specified values in any order. | ||
* <p>This helps asserting when the order of the values is not guaranteed, i.e., when merging | ||
* Assert that the TestObserver/TestSubscriber received only items that are in the specified | ||
* collection as well irrespective of the order they were received. | ||
* <p> | ||
* This helps asserting when the order of the values is not guaranteed, i.e., when merging | ||
* asynchronous streams. | ||
* <p> | ||
* To ensure that only the expected items have been received, no more and no less, in any order, | ||
* apply {@link #assertValueCount(int)} with {@code expected.size()}. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I guess ideally method name would indicate that by using a word like There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Posted #6153. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. As-is this method "ignores" duplicates, while There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The aim is to provide some typical set of assertions with |
||
* | ||
* @param expected the collection of values expected in any order | ||
* @return this | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
->