expected:<java.lang.Object@1c9e95a> but was:<>

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 web5447

  • expected:<java.lang.Object@1c9e95a> but was:<>
  • expected null, but was:<java.lang.Object@e46007>
  • via Stack Overflow by Unknown author, 1 year ago
    expected:<[java.lang.Object@56d5e457, java.lang.Object@7482384a]> but was:<null>
  • Stack trace

    • java.lang.AssertionError: expected:<java.lang.Object@1c9e95a> but was:<> at at org.junit.Assert.failNotEquals( at org.junit.Assert.assertEquals( at org.junit.Assert.assertEquals( at

    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

    5 times, 6 days ago
    Once, 1 week ago
    Once, 1 week ago
    Once, 3 weeks ago
    2 times, 1 month ago
    98 more bugmates