java.lang.AssertionError

expected:<2> but was:<0> at org.junit.Assert.fail(Assert.java:88)... java.lang.AssertionError: expected:<2> but was:<0>

Samebug tips1

Check your pattern declaration or check your assert declaration.


rafaelrafael

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

Solutions on the web3571

  • via Unknown by amir Ghannad,
  • via Unknown by Unknown author,
  • Stack trace

    • 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.testCopyConstructor(PublicTests.java:72)

    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

    musketyrmusketyr
    4 times, last one
    PierrePierre
    Once,
    jf-astjf-ast
    2 times, last one
    rocdayrocday
    Once,
    jokesterjokester
    3 times, last one
    98 more bugmates