onlyContains AWOL?

21 views
Skip to first unread message

Jon Reid

unread,
Nov 28, 2014, 4:56:57 PM11/28/14
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 AM11/30/14
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