org.junit.ComparisonFailure: expected:<[abc]> but was:<[def]>

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 vjuranek
, 1 year ago
expected:<key[1="value1" key2="" key3="value3]"> but was:<key[3="value3" key2="" key1="value1]">
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:<[abc]> but was:<[def]>
at org.junit.Assert.assertEquals(Assert.java:115)
at org.junit.Assert.assertEquals(Assert.java:144)
at okhttp3.RecordedResponse.assertBody(RecordedResponse.java:90)
at okhttp3.CallTest.legalToExecuteTwiceCloning_Async(CallTest.java:608)

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, 3 weeks ago
38 times, 1 month ago
294 more bugmates

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