java.lang.AssertionError: expected: java.util.Arrays$ArrayList<[0]> but was: java.util.ArrayList<[0]>

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

Samebug tips

,
Expert tip

Check your pattern declaration or check your assert declaration.

Solutions on the web

via camel-dev by Christian Müller, 1 year ago
via GitHub by hasancelik
, 1 year ago
expected:<0> but was:<1000>
java.lang.AssertionError: expected: java.util.Arrays$ArrayList<[0]> but was: java.util.ArrayList<[0]>
at org.junit.Assert.fail(Assert.java:93)
at org.junit.Assert.failNotEquals(Assert.java:647)
at org.junit.Assert.assertEquals(Assert.java:128)
at org.junit.Assert.assertEquals(Assert.java:147)
at org.hibernate.envers.test.integration.collection.EnumSet.testEnumRepresentation(EnumSet.java:123)

Users with the same issue

Once, 3 months ago
Once, 4 months ago
3 times, 4 months ago
2 times, 5 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Write tip

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