org.junit.ComparisonFailure: expected:<[yes]> but was:<[no]>

GitHub | meteorcloudy | 2 months ago
  1. 0

    Ant tests failing on Windows

    GitHub | 10 months ago | supersteves
    org.junit.ComparisonFailure: expected:<[var a;var b;]> but was:<[]>
  2. 0

    HtmlCheckBoxInput, HtmlRadioButton and HtmlOption's checked attributes are not reflected

    htmlunit | 9 months ago | dxavier
    org.junit.ComparisonFailure: expected:<...false, null, false, [null, true, , true, , true, yes, true, yes]]> but was:<...false, null, false, [checked, true, , true, null, true, yes, true, null]]>
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    HtmlCheckBoxInput, HtmlRadioButton and HtmlOption's checked attributes are not reflected

    htmlunit | 9 months ago | dxavier
    org.junit.ComparisonFailure: expected:<[false, null, true, [null, false, null, true, , false, , true, , true, yes, false, yes, true, yes]]> but was:<[false, null, true, [checked, false, null, true, , false, null, true, checked, true, yes, false, null, true, checked]]>
  5. 0

    HtmlCheckBoxInput, HtmlRadioButton and HtmlOption's checked attributes are not reflected

    htmlunit | 9 months ago | dxavier
    org.junit.ComparisonFailure: expected:<...false, null, false, [null, true, , true, , true, yes, true, yes]]> but was:<...false, null, false, [checked, true, checked, true, null, true, checked, true, null]]>
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:<[yes]> but was:<[no]>

    at com.google.common.truth.Platform.comparisonFailure()
  2. com.google.common
    StringSubject.isEqualTo
    1. com.google.common.truth.Platform.comparisonFailure(Platform.java:133)
    2. com.google.common.truth.Truth$1.failComparing(Truth.java:76)
    3. com.google.common.truth.StringSubject.isEqualTo(StringSubject.java:76)
    3 frames
  3. com.google.devtools
    LinkBuildVariablesTest.testInterfaceLibraryBuildingVariablesWhenGenerationPossible
    1. com.google.devtools.build.lib.rules.cpp.LinkBuildVariablesTest.testInterfaceLibraryBuildingVariablesWhenGenerationPossible(LinkBuildVariablesTest.java:190)
    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
    ParentRunner.run
    1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
    2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
    3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
    4. org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
    5. org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
    6. org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
    7. org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
    8. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
    9. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
    10. org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
    11. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
    12. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
    13. org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
    14. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
    15. org.junit.runners.ParentRunner.run(ParentRunner.java:309)
    16. org.junit.runners.Suite.runChild(Suite.java:127)
    17. org.junit.runners.Suite.runChild(Suite.java:26)
    18. org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
    19. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
    20. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
    21. org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
    22. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
    23. org.junit.runners.ParentRunner.run(ParentRunner.java:309)
    23 frames
  6. com.google.testing
    CancellableRequestFactory$CancellableRunner.run
    1. com.google.testing.junit.runner.internal.junit4.CancellableRequestFactory$CancellableRunner.run(CancellableRequestFactory.java:89)
    1 frame
  7. JUnit
    JUnitCore.run
    1. org.junit.runner.JUnitCore.run(JUnitCore.java:160)
    2. org.junit.runner.JUnitCore.run(JUnitCore.java:138)
    2 frames
  8. com.google.testing
    BazelTestRunner.main
    1. com.google.testing.junit.runner.junit4.JUnit4Runner.run(JUnit4Runner.java:112)
    2. com.google.testing.junit.runner.BazelTestRunner.runTestsInSuite(BazelTestRunner.java:140)
    3. com.google.testing.junit.runner.BazelTestRunner.main(BazelTestRunner.java:79)
    3 frames