java.lang.AssertionError: Expected: a collection with size <0> but: collection size was <1>

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via yahoo.com by Unknown author, 1 year ago
Expected: a CDR record with call ID: 12345678900 but: the call ID was "1234567890"
via GitHub by longtimeago
, 1 year ago
Expected: iterable containing [<[is "str0", is "str1", is "str2"]>] but: item 0: was "str0"
via openwritings.net by Unknown author, 1 year ago
Expected: a string containing "Not found" but: was "Assert string containing something."
via GitHub by carlosmiranda
, 1 year ago
Expected: <200> but: was <RsWithStatus(super=RsWrap(origin=org.takes.rs.RsWithStatus$1@76ccd017))>
via Stack Overflow by I.K.
, 2 years ago
Expected: iterable containing [&lt;[Item{name=iPhone}, Item{name=Skateboard}]&gt;] but: item 0: was &lt;Item{name=iPhone}&gt;
java.lang.AssertionError: Expected: a collection with size <0> but: collection size was <1>
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:8)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallStatic(CallSiteArray.java:53)

Users with the same issue

Once, 2 days ago
2 times, 2 days ago
3 times, 1 week ago
2 times, 2 weeks ago
3 times, 1 month ago
19 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.