org.junit.ComparisonFailure: expected:<'Connection refused[]'> but was:<'Connection refused\[: connect]'>

Hibernate JIRA | Sanne Grinovero | 2 months ago
  1. 0

    org.hibernate.search.elasticsearch.test.HostCanBeConfiguredIT.shouldApplyConfiguredElasticsearchHost Failing for the past 5 builds (Since Unstable#522 ) Took 1 sec. Error Message expected:<'Connection refused[]'> but was:<'Connection refused\[: connect]'> Stacktrace {code:java} org.junit.ComparisonFailure: expected:<'Connection refused[]'> but was:<'Connection refused\[: connect]'> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at org.fest.assertions.ConstructorInvoker.newInstance(ConstructorInvoker.java:36) at org.fest.assertions.ComparisonFailureFactory.newComparisonFailure(ComparisonFailureFactory.java:60) at org.fest.assertions.ComparisonFailureFactory.comparisonFailure(ComparisonFailureFactory.java:46) at org.fest.assertions.Fail.comparisonFailed(Fail.java:83) at org.fest.assertions.Fail.failIfNotEqual(Fail.java:71) at org.fest.assertions.ThrowableAssert.hasMessage(ThrowableAssert.java:85) at org.hibernate.search.elasticsearch.test.HostCanBeConfiguredIT.shouldApplyConfiguredElasticsearchHost(HostCanBeConfiguredIT.java:48) {code} I've seen this happening only on Windows, I guess ES gives a slightly different error message on Windows?

    Hibernate JIRA | 2 months ago | Sanne Grinovero
    org.junit.ComparisonFailure: expected:<'Connection refused[]'> but was:<'Connection refused\[: connect]'>
  2. 0

    Test Failure when Compiling with Java 8 on Windows 8.1

    GitHub | 2 years ago | da2ce7
    org.junit.ComparisonFailure: expected:<'Hello World[]'> but was:<'Hello World[ ]'>
  3. Speed up your debug routine!

    Automated exception search integrated into your IDE

  4. 0

    Incorrect spelling for true, false in Comparison failure

    YouTrack | 3 years ago
    org.junit.ComparisonFailure: Expected :[fals]e Actual :[tru]e <Click to see difference>
  5. 0

    Unit test execution failing when org.sonar.java.checks.verifier.JavaCheckVerifier is used

    Google Groups | 10 months ago | Vara Prasad
    org.junit.ComparisonFailure: expected:<null> but was:<4>

    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:<'Connection refused[]'> but was:<'Connection refused\[: connect]'>

      at sun.reflect.NativeConstructorAccessorImpl.newInstance0()
    2. Java RT
      Constructor.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:423)
      4 frames
    3. FEST Fluent Assertions
      ThrowableAssert.hasMessage
      1. org.fest.assertions.ConstructorInvoker.newInstance(ConstructorInvoker.java:36)
      2. org.fest.assertions.ComparisonFailureFactory.newComparisonFailure(ComparisonFailureFactory.java:60)
      3. org.fest.assertions.ComparisonFailureFactory.comparisonFailure(ComparisonFailureFactory.java:46)
      4. org.fest.assertions.Fail.comparisonFailed(Fail.java:83)
      5. org.fest.assertions.Fail.failIfNotEqual(Fail.java:71)
      6. org.fest.assertions.ThrowableAssert.hasMessage(ThrowableAssert.java:85)
      6 frames
    4. org.hibernate.search
      HostCanBeConfiguredIT.shouldApplyConfiguredElasticsearchHost
      1. org.hibernate.search.elasticsearch.test.HostCanBeConfiguredIT.shouldApplyConfiguredElasticsearchHost(HostCanBeConfiguredIT.java:48)
      1 frame