java.lang.AssertionError: expected:<2> but was:<0> at org.junit.Assert.fail(Assert.java:88)... java.lang.AssertionError: expected:<2> 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 Coderanch by amir Ghannad, 1 year ago
expected:<2> but was:<0> at org.junit.Assert.fail(Assert.java:88)... java.lang.AssertionError: expected:<2> but was:<0>
via GitHub by anuraaga
, 7 months ago
expected:<3> but was:<2>
via GitHub by dvohra
, 2 years ago
expected:<10> but was:<0>
via GitHub by Frank-Bradley
, 2 years ago
i: 0 expected: but was:
via GitHub by hasancelik
, 1 year ago
expected:<0> but was:<1000>
via osdir.com by Unknown author, 2 years ago
There should be one document because overwrite=true expected:<1> but was:<0> at __randomizedtesting.SeedInfo.seed([573006190B77DDC9:DF6439C3A58BB031]:0)
java.lang.AssertionError: expected:<2> but was:<0> at org.junit.Assert.fail(Assert.java:88)... java.lang.AssertionError: expected:<2> but was:<0>
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.failNotEquals(Assert.java:834)
at org.junit.Assert.assertEquals(Assert.java:645)
at org.junit.Assert.assertEquals(Assert.java:631)
at p4Testing.PublicTests.testBasicConstructorsAndGetters(PublicTests.java:33)

Users with the same issue

Once, 4 months ago
19 times, 3 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 3 months ago
Once, 4 months ago
123 more bugmates

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