java.lang.AssertionError: Expected: <11> but: was <0>

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 Stack Overflow by JaneGoodall
, 2 years ago
Expected: &lt;5&gt; but: was &lt;3&gt;
via GitHub by gregw
, 1 year ago
(After Close) Open Sessions.size Expected: is <0> but: was <1>
via Stack Overflow by JulioAragao
, 2 years ago
Expected: iterable containing [with toString() "c"] but: item 0: toString() was "a"
via GitHub by utensil
, 2 years ago
>, <0>, <0>, <0>, <0>, <0>, <0>, <0>, <0>, <0>, <0>, <0>, <0>] but: was [<0>, <0>, <0>, <0>, <0>, <0>, <0>, <0>, <0>, <0>, <0>, <0>, <0>, <0>, <0>, <0>, <0>, <0>, <0>, <1>, <0>, <0>, <0>, <0>, <1>, <0>, <0>, <0>, <0>, <0>, <1>, <0>, <0>, <1>, <0
java.lang.AssertionError: Expected: <11> but: was <0>
at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
at org.junit.Assert.assertThat(Assert.java:865)

Users with the same issue

2 times, 6 months ago
2 times, 2 months ago
Once, 2 months ago
3 times, 5 months ago
Once, 10 months ago
19 more bugmates

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