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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by elharo
, 1 year ago
expected:<java.lang.Object@1c9e95a> but was:<>
via Stack Overflow by Unknown author, 2 years ago
expected:<[java.lang.Object@56d5e457, java.lang.Object@7482384a]> but was:<null>
via GitHub by hasancelik
, 2 years ago
expected:<500> but was:<4156>
via Google Groups by Erik Ramfelt, 4 months ago
via GitHub by anuraaga
, 9 months ago
expected:<3> but was:<2>
java.lang.AssertionError: expected:<java.lang.Object@1c9e95a> but was:<>
at org.junit.Assert.failNotEquals(
at org.junit.Assert.assertEquals(
at org.junit.Assert.assertEquals(

Users with the same issue

Once, 1 day ago
Once, 2 days ago
Once, 5 days ago
Once, 1 week ago
2 times, 1 week ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.