Closed GoogleCodeExporter closed 9 years ago
You can use everyItem(matcher) for this:
Assert.assertThat(
Arrays.<Number>asList(1, 2.0),
everyItem(Matchers.<Integer>instanceOf(Integer.class)));
I haven't used the Java version in a while, but do you really need the
"Matchers.<Integer>" part?
Original comment by dharkn...@gmail.com
on 20 Jan 2012 at 6:40
Original issue reported on code.google.com by
motlin
on 26 Dec 2011 at 9:48