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
Add Matchers.empty(), Matchers,hasSize() for Maps too. #35
Comments
|
What about IsMapWithSize.anEmptyMap() and IsMapWithSize.aMapWithSize()? That do exactly what you want. See #34 |
|
You're right they do work. This issue is to put methods on the Matchers class itself. Most people don't know to look further than the Matchers class' static methods. Matt Bishop On 2013-06-28, at 2:59 AM, Piotr Kubowicz notifications@github.com wrote:
|
|
@mattbishop I think the static methods contained inside the |
|
Both methods were marked with |
|
We already have this feature just with a slightly different name |
|
I think this issue should be closed. |
While IsMapWithSize exists in the API to test for these conditions on a Map, they are hard to find. Most developers only use the Matchers facade to find matchers, so we end up with code that looks like this:
It would be nicer to write:
The text was updated successfully, but these errors were encountered: