java.lang.AssertionError

expected:<0> but was:<2>

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 web6368

  • via GitHub by hasancelik
    , 7 months ago
    expected:<2> but was:<0>
  • via GitHub by wildfly-ci
    , 1 year ago
    expected:<0> but was:<2>
  • via GitHub by wildfly-ci
    , 1 year ago
    expected:<0> but was:<2>
  • Stack trace

    • java.lang.AssertionError: expected:<0> but was:<2> at org.junit.Assert.fail(Assert.java:91) at org.junit.Assert.failNotEquals(Assert.java:618) at org.junit.Assert.assertEquals(Assert.java:126) at org.junit.Assert.assertEquals(Assert.java:443) at org.junit.Assert.assertEquals(Assert.java:427)

    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

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