org.junit.ComparisonFailure: expected:<Hello World![]> but was:<Hello World![ ]>

Coderanch | Edmund Wong | 5 years ago
  1. 0

    assertEquals with println (Beginning Java forum at Coderanch)

    coderanch.com | 7 months ago
    org.junit.ComparisonFailure: expected:<Hello World![]> but was:<Hello World![ ]>
  2. 0

    assertEquals with println

    Coderanch | 5 years ago | Edmund Wong
    org.junit.ComparisonFailure: expected:<Hello World![]> but was:<Hello World![ ]>
  3. 0

    Apply fix to SturcturedQueryBuilderTest to b2_0

    GitHub | 2 years ago | sammefford
    org.junit.ComparisonFailure: expected:<...vices/search" xmlns:[y="target.org" xmlns:x="roo]t.org" xmlns:xsi="ht...> but was:<...vices/search" xmlns:[x="root.org" xmlns:y="targe]t.org" xmlns:xsi="ht...>
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Default test suit has undeterministic behaviour on win8 + JDK7

    GitHub | 4 years ago | mrlogan
    org.junit.ComparisonFailure: expected:<before [apple after before banana] after afterAll > but was:<before [banana after before apple] after afterAll >
  6. 0

    Multi-byte character support not working on Mac

    GitHub | 4 years ago | jtaylor-sfdc
    org.junit.ComparisonFailure: expected:<\u0192[é]> but was:<\u0192[]>

  1. MoYapro 2 times, last 3 weeks ago
  2. richard77 2 times, last 4 weeks ago
  3. treefolk 2 times, last 4 weeks ago
  4. kjhdofjosvs 2 times, last 4 weeks ago
  5. r1chjames 3 times, last 1 month ago
2 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:<Hello World![]> but was:<Hello World![ ]>

    at org.junit.Assert.assertEquals()
  2. JUnit
    Assert.assertEquals
    1. org.junit.Assert.assertEquals(Assert.java:125)
    2. org.junit.Assert.assertEquals(Assert.java:147)
    2 frames
  3. Unknown
    HelloWorldTest.main
    1. HelloWorldTest.main(HelloWorldTest.java:24)
    1 frame