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

Coderanch | Edmund Wong | 4 years ago
  1. 0

    assertEquals with println (Beginning Java forum at Coderanch)

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

    assertEquals with println

    Coderanch | 4 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[]>

    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