I am linking with hamcrest-all-1.3.jar.
The example given for
org.hamcrest.Matcher<java.lang.Iterable<? extends E>>
contains(org.hamcrest.Matcher<? super E> itemMatcher)
is
assertThat(Arrays.asList("foo"), contains(equalTo("foo")));
This works, but
assertThat(Arrays.asList("bar", "foo"), contains(equalTo("foo")));
fails! It only seems to try matching the first item in the list.
Original issue reported on code.google.com by immo.h.h...@gmail.com on 5 Aug 2014 at 7:28
Original issue reported on code.google.com by
immo.h.h...@gmail.com
on 5 Aug 2014 at 7:28