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 Stack Overflow by Guardian
, 1 year ago
expected:<07 04 2014 1[0]:14:00> but was:<07 04 2014 1[1]:14:00>
via GitHub by craveica
, 2 years ago
expected:<.../dd, nowValue=176644[44]00000}> but was:<.../dd, nowValue=176644[08]00000}>
via GitHub by wildfly-ci
, 1 year ago
expected:<[3]> but was:<[0]>
via GitHub by pboyer
, 1 year ago
expected:<...pr (expr a) , (expr [c) >> (expr x])) <EOF>) but was:<...pr (expr a) , (expr [(expr c) >> (expr x)])) <EOF>)
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.testMulticlassExample(TestWriteSVMLightFormat.java:132)
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

Once, 11 hours ago
6 times, 1 week ago
Once, 1 week ago
12 times, 2 weeks ago
2 times, 4 weeks ago

Write tip

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