org.junit.ComparisonFailure: expected:</home/data/file[2].dat> but was:</home/data/file[1].dat>

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

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via GitHub by hasancelik
, 1 year ago
expected:</home/data/file[2].dat> but was:</home/data/file[1].dat>
via GitHub by wildfly-ci
, 1 year ago
expected:<[2]> but was:<[1]>
via GitHub by zaki50
, 1 year ago
expected:</data/[data]/io.realm.test/files...> but was:</data/[user/11]/io.realm.test/files...>
via GitHub by wildfly-ci
, 1 year ago
expected:<[1]> but was:<[0]>
via GitHub by wildfly-ci
, 1 year ago
expected:<[1]> but was:<[0]>
via GitHub by wildfly-ci
, 1 year ago
expected:<[1]> but was:<[0]>
org.junit.ComparisonFailure: expected:</home/data/file[2].dat> but was:</home/data/file[1].dat>
at org.junit.Assert.assertEquals(Assert.java:115)
at org.junit.Assert.assertEquals(Assert.java:144)

Users with the same issue

82 times, 2 weeks ago
Samebug visitor profile picture
Unknown user
Once, 3 weeks ago
Samebug visitor profile picture
Unknown user
Once, 3 weeks ago
Once, 1 month ago
38 times, 1 month ago

Write tip

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