Groups
Groups
Sign in
Groups
Groups
Hamcrest Developers
Conversations
About
Send feedback
Help
onlyContains AWOL?
21 views
Skip to first unread message
Jon Reid
unread,
Nov 28, 2014, 4:56:57 PM
11/28/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Hamcrest Developers
Curious… whatever happened to IsArrayOnlyContaining and isCollectionOnlyContaining?
(As I beef up the Objective-C version, I noticed it had gone missing from the Java version.)
scarytom
unread,
Nov 30, 2014, 3:32:22 AM
11/30/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to hamcre...@googlegroups.com
Looks like they got renamed to IsArrayContainingSingleItem.arrayWithSingleItem and IsIterableContainingSingleItem.hasSingleItem (see
https://github.com/hamcrest/JavaHamcrest/commit/1860732426aad6e5d50dac6ade8ecb886b99d353
) and then shortly afterwards (in 2008) got removed entirely (see
https://github.com/hamcrest/JavaHamcrest/commit/8c6fffef5a5627f38877f0c8ccd4061e4b59f4c4
), presumably because the contains matchers do the same thing if you only pass one item.
Reply all
Reply to author
Forward
0 new messages