expected:<5> but was:<0>

Samebug tips1

Check your pattern declaration or check your assert declaration.

Don't give up yet. Our experts can help. Paste your full stack trace to get a solution.

Solutions on the web6321

  • via by Unknown author, 11 months ago
    expected:5 but was:0
  • via GitHub by schorke
    , 9 months ago
    expected:<5> but was:<0>
  • expected:<5> but was:<0>
  • Stack trace

    • java.lang.AssertionError: expected:<5> but was:<0> at at org.junit.Assert.failNotEquals( at org.junit.Assert.assertEquals( at org.junit.Assert.assertEquals( at com.comp.fongotest.dao.AccountDaoRepositoryTest.countAllAccounts(

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Once, 6 months ago
    2 times, 3 days ago
    4 times, 1 week ago
    Once, 3 weeks ago
    2 times, 4 weeks ago
    98 more bugmates