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>

GitHub | danyaljj | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    SVMLight test fails on mac machine

    GitHub | 8 months ago | danyaljj
    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>
  2. 0

    SVMLight test fails on mac machine

    GitHub | 8 months ago | danyaljj
    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>
  3. 0

    GitHub comment 82#68278054

    GitHub | 2 years ago | ColinMaudry
    org.junit.ComparisonFailure: expected:<...moporphics.com/graph[1]> but was:<...moporphics.com/graph[2]>
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Encryption/decryption cycle doesn't work

    GitHub | 2 years ago | GoogleCodeExporter
    org.junit.ComparisonFailure: expected:<[Hello World]> but was:<[]>
  6. 0

    HandleAccessorTest failing in maven

    GitHub | 2 years ago | sammefford
    org.junit.ComparisonFailure: byte[] content mismatch expected:<[ยก]Hola!> but was:<[?]Hola!>

  1. rsprangemeijer 5 times, last 1 week ago
  2. jf-ast 2 times, last 2 weeks ago
  3. MoYapro 2 times, last 3 months ago
  4. richard77 2 times, last 3 months ago
  5. treefolk 2 times, last 3 months ago
4 more registered users
7 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. 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()
  2. JUnit
    Assert.assertEquals
    1. org.junit.Assert.assertEquals(Assert.java:99)
    2. org.junit.Assert.assertEquals(Assert.java:117)
    2 frames
  3. edu.illinois.cs
    TestWriteSVMLightFormat.testBinaryExample
    1. edu.illinois.cs.cogcomp.edison.utilities.TestWriteSVMLightFormat.testBinaryExample(TestWriteSVMLightFormat.java:102)
    1 frame
  4. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:498)
    4 frames
  5. JUnit
    JUnitCore.run
    1. org.junit.internal.runners.TestMethod.invoke(TestMethod.java:59)
    2. org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:98)
    3. org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:79)
    4. org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:87)
    5. org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:77)
    6. org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:42)
    7. org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:88)
    8. org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)
    9. org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44)
    10. org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)
    11. org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
    12. org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)
    13. org.junit.runner.JUnitCore.run(JUnitCore.java:130)
    13 frames
  6. IntelliJ junit4 module
    JUnit4IdeaTestRunner.startRunnerWithArgs
    1. com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:69)
    1 frame
  7. IDEA
    JUnitStarter.main
    1. com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234)
    2. com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:74)
    2 frames
  8. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:498)
    4 frames
  9. IDEA
    AppMain.main
    1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)
    1 frame