org.junit.ComparisonFailure: expected:<[Hi there! ]> but was:<[]>

Spring JIRA | Patrick Peralta | 3 years 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

    AlertingTest failing in json comparison

    GitHub | 3 years ago | sammefford
    org.junit.ComparisonFailure: expected:<...ule-metadata":null}}[]> but was:<...ule-metadata":null}}[ ]>
  2. Speed up your debug routine!

    Automated exception search integrated into your IDE

  3. 0

    Running the tests, deploying to an internal maven, & updating versions

    GitHub | 2 years ago | jtruelove
    org.junit.ComparisonFailure: expected:<[error]> but was:<[ok]>
  4. 0

    Cookies tests are flaky

    GitHub | 3 years ago | seato
    org.junit.ComparisonFailure: expected:<[GM]20527.group.on> but was:<[gm]20527.group.on>

  1. iferca 2 times, last 3 weeks ago
  2. Casper 9 times, last 4 weeks ago
  3. rsprangemeijer 5 times, last 1 month ago
  4. jf-ast 2 times, last 1 month ago
  5. MoYapro 2 times, last 4 months ago
6 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:<[Hi there! ]> but was:<[]>

    at org.junit.Assert.assertEquals()
  2. JUnit
    Assert.assertEquals
    1. org.junit.Assert.assertEquals(Assert.java:115)
    2. org.junit.Assert.assertEquals(Assert.java:144)
    2 frames
  3. org.springframework.xd
    TcpModulesTests.testTcpSink
    1. org.springframework.xd.shell.command.TcpModulesTests.testTcpSink(TcpModulesTests.java:63)
    1 frame
  4. Java RT
    NativeMethodAccessorImpl.invoke0
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    1 frame