org.junit.ComparisonFailure: expected:<July 21, 1905 1[2]:00:00 AM EST> but was:<July 21, 1905 1[0]:00:00 AM EST>

Hibernate JIRA | Martin Šimka | 3 years ago
  1. 0

    We've added new oracle12c to our QA lab and this test fails only on this oracle instance. It could be only db configuration issue, but I haven't found reason why it fails. Stacktrace {noformat} org.junit.ComparisonFailure: expected:<July 21, 1905 1[2]:00:00 AM EST> but was:<July 21, 1905 1[0]:00:00 AM EST> at org.junit.Assert.assertEquals(Assert.java:125) at org.junit.Assert.assertEquals(Assert.java:147) at org.hibernate.test.annotations.EntityTest.testTemporalType(EntityTest.java:381) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42) at org.hibernate.testing.junit4.ExtendedFrameworkMethod.invokeExplosively(ExtendedFrameworkMethod.java:63) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30) at org.junit.internal.runners.statements.FailOnTimeout$StatementThread.run(FailOnTimeout.java:62) {noformat}

    Hibernate JIRA | 3 years ago | Martin Šimka
    org.junit.ComparisonFailure: expected:<July 21, 1905 1[2]:00:00 AM EST> but was:<July 21, 1905 1[0]:00:00 AM EST>
  2. 0

    We've added new oracle12c to our QA lab and this test fails only on this oracle instance. It could be only db configuration issue, but I haven't found reason why it fails. Stacktrace {noformat} org.junit.ComparisonFailure: expected:<July 21, 1905 1[2]:00:00 AM EST> but was:<July 21, 1905 1[0]:00:00 AM EST> at org.junit.Assert.assertEquals(Assert.java:125) at org.junit.Assert.assertEquals(Assert.java:147) at org.hibernate.test.annotations.EntityTest.testTemporalType(EntityTest.java:381) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42) at org.hibernate.testing.junit4.ExtendedFrameworkMethod.invokeExplosively(ExtendedFrameworkMethod.java:63) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30) at org.junit.internal.runners.statements.FailOnTimeout$StatementThread.run(FailOnTimeout.java:62) {noformat}

    Hibernate JIRA | 3 years ago | Martin Šimka
    org.junit.ComparisonFailure: expected:<July 21, 1905 1[2]:00:00 AM EST> but was:<July 21, 1905 1[0]:00:00 AM EST>
  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[]>
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:<July 21, 1905 1[2]:00:00 AM EST> but was:<July 21, 1905 1[0]:00:00 AM EST>

    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. org.hibernate.test
    EntityTest.testTemporalType
    1. org.hibernate.test.annotations.EntityTest.testTemporalType(EntityTest.java:381)
    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
    FrameworkMethod.invokeExplosively
    1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45)
    2. org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
    3. org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42)
    3 frames
  6. A Hibernate O/RM Module
    ExtendedFrameworkMethod.invokeExplosively
    1. org.hibernate.testing.junit4.ExtendedFrameworkMethod.invokeExplosively(ExtendedFrameworkMethod.java:63)
    1 frame
  7. JUnit
    FailOnTimeout$StatementThread.run
    1. org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
    2. org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)
    3. org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)
    4. org.junit.internal.runners.statements.FailOnTimeout$StatementThread.run(FailOnTimeout.java:62)
    4 frames