org.junit.ComparisonFailure: Expected :1 0:1 5:1 7:1 9:1 11:1 12:1 14:1 15:1 16:1 18:1 19:1 24:1 25:1 27:1 29:1 33:1 34:1 35:1 36:1 37:1 38:1 39:1 40:1 41:1 42:1 43:1 44:1 45:1 46:1 Actual :1 0:1 2:1 5:1 7:1 9:1 10:1 11:1 15:1 18:1 20:1 21:1 22:1 23:1 24:1 27:1 28:1 29:1 33:1 36:1 37:1 38:1 39:1 40:1 41:1 42:1 43:1 44:1 45:1 46:1 <Click to see difference>

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 danyaljj
, 1 year ago
Expected :1 0:1 5:1 7:1 9:1 11:1 12:1 14:1 15:1 16:1 18:1 19:1 24:1 25:1 27:1 29:1 33:1 34:1 35:1 36:1 37:1 38:1 39:1 40:1 41:1 42:1 43:1 44:1 45:1 46:1 Actual :1 0:1 2:1 5:1 7:1 9:1 10:1 11:1 15:1 18:1 20:1 21:1 22:1 23:1 24:1 27:1 28:1 29:1 33:1 36:1 37:1 38:1 39:1 40:1 41:1 42:1 43:1 44:1 45:1 46:1 <Click to see difference>
via GitHub by danyaljj
, 9 months ago
Expected :1 0:1 5:1 7:1 9:1 11:1 12:1 14:1 15:1 16:1 18:1 19:1 24:1 25:1 27:1 29:1 33:1 34:1 35:1 36:1 37:1 38:1 39:1 40:1 41:1 42:1 43:1 44:1 45:1 46:1 Actual :1 0:1 2:1 5:1 7:1 9:1 10:1 11:1 15:1 18:1 20:1 21:1 22:1 23:1 24:1 27:1 28:1 29:1 33:1 36:1 37:1 38:1 39:1 40:1 41:1 42:1 43:1 44:1 45:1 46:1 <Click to see difference>
via GitHub by martincastell
, 2 years ago
expected:<target[/]indexes> but was:<target[\]indexes>
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 hasancelik
, 1 year ago
expected:</dev/shm/[/]foo65963353565338750...> but was:</dev/shm/[]foo65963353565338750...>
via GitHub by hasancelik
, 1 year ago
expected:</dev/shm/[/]foo88036943264057655...> but was:</dev/shm/[]foo88036943264057655...>
org.junit.ComparisonFailure: Expected :1 0:1 5:1 7:1 9:1 11:1 12:1 14:1 15:1 16:1 18:1 19:1 24:1 25:1 27:1 29:1 33:1 34:1 35:1 36:1 37:1 38:1 39:1 40:1 41:1 42:1 43:1 44:1 45:1 46:1 Actual :1 0:1 2:1 5:1 7:1 9:1 10:1 11:1 15:1 18:1 20:1 21:1 22:1 23:1 24:1 27:1 28:1 29:1 33:1 36:1 37:1 38:1 39:1 40:1 41:1 42:1 43:1 44:1 45:1 46:1 <Click to see difference>
at org.junit.Assert.assertEquals(Assert.java:99)
at org.junit.Assert.assertEquals(Assert.java:117)
at edu.illinois.cs.cogcomp.edison.utilities.TestWriteSVMLightFormat.testBinaryExample(TestWriteSVMLightFormat.java:102)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.junit.internal.runners.TestMethod.invoke(TestMethod.java:59)
at org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:98)
at org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:79)
at org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:87)
at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:77)
at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:42)
at org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:88)
at org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)
at org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44)
at org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)
at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
at org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)
at org.junit.runner.JUnitCore.run(JUnitCore.java:130)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)

Users with the same issue

6 times, 6 days ago
Once, 1 week ago
12 times, 1 week ago
2 times, 3 weeks ago
Once, 1 month ago

Write tip

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