Closed GoogleCodeExporter closed 8 years ago
Is this expected to be released with JUnit in the near future?
While we're at it, it would be nice to be able to specify a collection as a
parameter to hasItem.
@Factory
public static <T> Matcher<Iterable<? super T>> hasItem(final Collection<? extends T> elements) {
final Collection<Matcher<? extends Iterable<? super T>>> all = new ArrayList<Matcher<? extends
Iterable<? super T>>>(elements.size());
for (final T element : elements) {
all.add(hasItem(element));
}
return allOf(all);
}
Original comment by newsju...@gmail.com
on 23 Feb 2008 at 8:39
Fixed as part of larger generics changes
Original comment by smgfree...@gmail.com
on 20 Nov 2008 at 4:42
Original comment by smgfree...@gmail.com
on 22 Nov 2008 at 12:20
Original issue reported on code.google.com by
NikolayM...@gmail.com
on 12 Nov 2007 at 9:17