java.lang.AssertionError: expected:<0> but was:<2>

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

Check your pattern declaration or check your assert declaration.


rafael

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

  • Re: scout 1.2.2 unit tests problems with jUDDI 3.04
    via by Javier Molina,
  • Re: scout 1.2.2 unit tests problems with jUDDI 3.04
    via by Javier Molina,
  • scout 1.2.2 unit tests problems with jUDDI 3.04
    via by Javier Molina,
  • GitHub comment 7222#168181600
    via GitHub by hasancelik
    ,
  • GitHub comment 6496#183318253
    via GitHub by hasancelik
    ,
  • Hadoop-Mapreduce-trunk - Build # 2009 - Still Failing
    via by Apache Jenkins Server,
    • 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)

    Users with the same issue

    Axelo
    Axelo2 times, last one,
    jf-ast
    jf-ast1 times, last one,
    odd
    odd17 times, last one,
    rocday
    rocday1 times, last one,
    andyglick
    andyglick2 times, last one,
    94 more bugmates