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

GitHub | meteorcloudy | 5 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

    GitHub comment 2081#260377482

    GitHub | 4 months ago | meteorcloudy
    org.junit.ComparisonFailure: expected:<x/plugin[]> but was:<x/plugin[.exe]>
  2. 0

    bazel-tests ci job fails on Windows: //src/test/java/com/google/devtools/build/lib:bazel-rules-tests

    GitHub | 2 months ago | meteorcloudy
    org.junit.ComparisonFailure: expected:<[/bin/bash]> but was:<[C:/tools/msys64/usr/bin/bash.exe]>
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Ant tests failing on Windows

    GitHub | 1 year ago | supersteves
    org.junit.ComparisonFailure: expected:<[var a;var b;]> but was:<[]>

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