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

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Hibernate JIRA by Martin Šimka, 1 year ago
expected:<July 21, 1905 1[2]:00:00 AM EST> but was:<July 21, 1905 1[0]:00:00 AM EST>
via Hibernate JIRA by Martin Šimka, 1 year ago
expected:<July 21, 1905 1[2]:00:00 AM EST> but was:<July 21, 1905 1[0]:00:00 AM EST>
via GitHub by angel9484
, 5 months ago
expected:<...e(cod=1, name=myName[, cur=null, des=des, otherName=other])> but was:<...e(cod=1, name=myName[2, cur=cur1, des=des1, otherName=other1])>
via GitHub by CruzBishop
, 2 years ago
expected:<[proposed]> but was:<[foo]>
via GitHub by wildfly-ci
, 1 year ago
expected:<[2]> but was:<[1]>
via GitHub by wildfly-ci
, 1 year ago
expected:<[1]> but was:<[0]>
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.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)

Users with the same issue

Once, 6 months ago
2 times, 2 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago
Once, 2 months ago
294 more bugmates

Know the solutions? Share your knowledge to help other developers to debug faster.