org.junit.ComparisonFailure: The result should be 'Main header' expected:<Main header[]> but was:<Main header[(fr)]>

Unix & Linux | Tom Klino | 2 years ago
  1. 0

    How to get pass a localisation issue when setting up a maven project?

    Unix & Linux | 2 years ago | Tom Klino
    org.junit.ComparisonFailure: The result should be 'Main header' expected:<Main header[]> but was:<Main header[(fr)]>
  2. 0

    HandleAccessorTest failing in maven

    GitHub | 2 years ago | sammefford
    org.junit.ComparisonFailure: byte[] content mismatch expected:<[ยก]Hola!> but was:<[?]Hola!>
  3. 0

    gateway.transport.wsn: IdleTimeoutExtensionPongsIT.shouldGetPongsFromidleTimeoutExtensionWhenWriterIdle spurious failures

    GitHub | 2 years ago | dpwspoon
    org.junit.ComparisonFailure: Robotic behavior did not match expected expected:<... (frequent enough) [write await SLEEP_ONE write [0x81 0x83 0x01 0x01 0x01 0x01 0x30 0x33 0x32] write await SLEEP_TWO write [0x81 0x83 0x01 0x01 0x01 0x01 0x30 0x33 0x32] write await SLEEP_THREE write [0x81 0x83 0x01 0x01 0x01 0x01 0x30 0x33 0x32] write await SLEEP_FOUR write [0x81 0x83 0x01 0x01 0x01 0x01 0x30 0x33 0x32] write await SLEEP_FIVE write [0x81 0x83 0x01 0x01 0x01 0x01 0x30 0x33 0x32] write await SLEEP_SIX write [0x81 0x83 0x01 0x01 0x01 0x01 0x30 0x33 0x32] write await SLEEP_SEVEN write [0x81 0x83 0x01 0x01 0x01 0x01 0x30 0x33 0x32] write await SLEEP_EIGHT write [0x81 0x83 0x01 0x01 0x01 0x01 0x30 0x33 0x32] # Expect (extension) PONG read [0x81 0x06 0x01 0x01 0x01 0x02 0x0a 0x00] # Do clean close write [0x88 0x00] read [0x88 0x00] close closed # Connection from back end of proxy service # ========================================= accept tcp://127.0.0.1:8002 accepted connected # read 8 "abc" frames read [0x31 0x32 0x33] read [0x31 0x32 0x33] read [0x31 0x32 0x33] read [0x31 0x32 0x33] read [0x31 0x32 0x33] read [0x31 0x32 0x33] read [0x31 0x32 0x33] read [0x31 0x32 0x33] closed # Connect to ServerSocket in test method to read period data to simulate SLEEP # ============================================================================ connect tcp://localhost:61234 connected read "WakeUp1" read notify SLEEP_ONE read "WakeUp2" read notify SLEEP_TWO read "WakeUp3" read notify SLEEP_THREE read "WakeUp4" read notify SLEEP_FOUR read "WakeUp5" read notify SLEEP_FIVE read "WakeUp6" read notify SLEEP_SIX read "WakeUp7" read notify SLEEP_SEVEN read "WakeUp8" read notify SLEEP_EIGHT close closed] > but was:<... (frequent enough) [[id: 0xff0937ae, /127.0.0.1:60170 => /127.0.0.1:8001] RECEIVED: BigEndianHeapChannelBuffer(ridx=0, widx=8, cap=8) +-------------------------------------------------+ | 0 1 2 3 4 5 6 7 8 9 a b c d e f | +--------+-------------------------------------------------+----------------+ |00000000| 81 06 01 01 01 02 09 00 |........ | +--------+-------------------------------------------------+----------------+ # Connection from back end of proxy service # ========================================= accept tcp://127.0.0.1:8002 accepted connected # read 8 "abc" frames [id: 0x7a23f384, /127.0.0.1:37075 :> /127.0.0.1:8002] DISCONNECTED # Connect to ServerSocket in test method to read period data to simulate SLEEP # ============================================================================ connect tcp://localhost:61234 [id: 0xb2327577] CLOSED] >
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    ULongTest.java is locale-dependent

    GitHub | 2 years ago | mreithub
    org.junit.ComparisonFailure: Wrong string value expected:<9[,223,372,036,854,775,]808> but was:<9[.223.372.036.854.775.]808>
  6. 0

    Build is environment dependent - take 2 - failing tests

    GitHub | 3 years ago | ieugen
    org.junit.ComparisonFailure: Actual does not match expected. expected:<...mple.model.Order> [ <header> <orderId>1</orderId> <orderStatus>0</orderStatus> <netAmount>59.97</netAmount> <totalAmount>64.92</totalAmount> <tax>4.95</tax> <customer> <userName>user1</userName> <firstName>Harry</firstName> <lastName>Fletcher</lastName> <state>SD</state> </customer> </header> <orderItems> <example.model.OrderItem> <quantity>1</quantity> <productId>364</productId> <price>29.98</price> <title>The 40-Year-Old Virgin</title> </example.model.OrderItem> <example.model.OrderItem> <quantity>1</quantity> <productId>299</productId> <price>29.99</price> <title>Pulp Fiction</title> </example.model.OrderItem> ] </orderItems> </ex...> but was:<...mple.model.Order> [<header> <orderId>1</orderId> <orderStatus>0</orderStatus> <netAmount>59.97</netAmount> <totalAmount>64.92</totalAmount> <tax>4.95</tax> <date>2006-11-15 18:45:28.0 UTC</date> <customer> <userName>user1</userName> <firstName>Harry</firstName> <lastName>Fletcher</lastName> <state>SD</state> </customer> </header> <orderItems> <example.model.OrderItem> <quantity>1</quantity> <productId>364</productId> <price>29.98</price> <title>The 40-Year-Old Virgin</title> </example.model.OrderItem> <example.model.OrderItem> <quantity>1</quantity> <productId>299</productId> <price>29.99</price> <title>Pulp Fiction</title> </example.model.OrderItem> ] </orderItems> </ex...>

    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

      The result should be 'Main header' expected:<Main header[]> but was:<Main header[(fr)]>

      at org.junit.Assert.assertEquals()
    2. JUnit
      Assert.assertEquals
      1. org.junit.Assert.assertEquals(Assert.java:115)
      1 frame
    3. org.ovirt.engine
      BrandingManagerTest.testGetMessageDefaultLocale
      1. org.ovirt.engine.core.branding.BrandingManagerTest.testGetMessageDefaultLocale(BrandingManagerTest.java:81)
      1 frame
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      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.runners.ParentRunner.runLeaf(ParentRunner.java:271)
      7. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
      8. org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
      9. org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
      10. org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
      11. org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
      12. org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
      13. org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
      14. org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      14 frames
    6. JUnit4 Provider
      JUnit4Provider.invoke
      1. org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:35)
      2. org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:115)
      3. org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:97)
      3 frames
    7. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    8. SureFire
      ProviderFactory$ClassLoaderProxy.invoke
      1. org.apache.maven.surefire.booter.ProviderFactory$ClassLoaderProxy.invoke(ProviderFactory.java:103)
      1 frame
    9. com.sun.proxy
      $Proxy0.invoke
      1. com.sun.proxy.$Proxy0.invoke(Unknown Source)
      1 frame
    10. SureFire
      ForkedBooter.main
      1. org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:150)
      2. org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:91)
      3. org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:69)
      3 frames