java.lang.AssertionError

expected:<com.kashu.demo.User@554d7139> but was:<com.kashu.demo.User@6643364a> 20:02:16.869 [DEBUG] [TestEventLogger] at org.junit.Assert.fail(Assert.java:88) 20:02:16.869 [QUIET] [system.out] 20:02:16.868 [ 20:02:16.869 [DEBUG] [TestEventLogger] at org.junit.Assert.failNotEquals(Assert.java:834) 20:02:16.869 [QUIET] [system.out] INFO] [org.gradle.api.internal.tasks.testing.worker.TestWorker] Gradle Test Executor 1 finished executing tests. 20:02:16.870 [DEBUG] [TestEventLogger] at org.junit.Assert.assertEquals(Assert.java:118) 20:02:16.870 [DEBUG] [TestEventLogger] at org.junit.Assert.assertEquals(Assert.java:144) 20:02:16.870 [DEBUG] [TestEventLogger] at com.kashu.demo.UserRepositoryTest.findSavedUserById(UserRepositoryTest.java:67) 20:02:16.871 [DEBUG] [TestEventLogger] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 20:02:16.871 [DEBUG] [TestEventLogger] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web6875

  • ] [TestEventLogger] at org.junit.Assert.failNotEquals(Assert.java:834) 20:02:16.869 [QUIET] [system.out] INFO] [org.gradle.api.internal.tasks.testing.worker.TestWorker] Gradle Test Executor 1 finished executing tests. 20:02:16.870 [DEBUG] [TestEventLogger
  • via Coderanch by amir Ghannad, 1 year ago
    expected:<1> but was:<0> at org.junit.Assert.fail(Assert.java:88)... java.lang.AssertionError: expected:<1> but was:<0>
  • Lists differ at element [0]: 1989-03-18 01:02:03.0 != 1989-03-18 00:02:03.0 expected [1989-03-18 01:02:03.0] but found [1989-03-18 00:02:03.0]
  • Stack trace

    • java.lang.AssertionError: expected:<com.kashu.demo.User@554d7139> but was:<com.kashu.demo.User@6643364a> 20:02:16.869 [DEBUG] [TestEventLogger] at org.junit.Assert.fail(Assert.java:88) 20:02:16.869 [QUIET] [system.out] 20:02:16.868 [ 20:02:16.869 [DEBUG] [TestEventLogger] at org.junit.Assert.failNotEquals(Assert.java:834) 20:02:16.869 [QUIET] [system.out] INFO] [org.gradle.api.internal.tasks.testing.worker.TestWorker] Gradle Test Executor 1 finished executing tests. 20:02:16.870 [DEBUG] [TestEventLogger] at org.junit.Assert.assertEquals(Assert.java:118) 20:02:16.870 [DEBUG] [TestEventLogger] at org.junit.Assert.assertEquals(Assert.java:144) 20:02:16.870 [DEBUG] [TestEventLogger] at com.kashu.demo.UserRepositoryTest.findSavedUserById(UserRepositoryTest.java:67) 20:02:16.871 [DEBUG] [TestEventLogger] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 20:02:16.871 [DEBUG] [TestEventLogger] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.