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)

Stack Overflow | KunAn Hsu | 4 months ago
  1. 0

    JUnit test always fails when comparing two objects

    Stack Overflow | 4 months ago | KunAn Hsu
    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)
  2. 0

    java.lang.AssertionError: null

    sqaforums.com | 1 year ago
    java.lang.AssertionError: java.lang.AssertionError: null at com.thoughtworks.selenium.SeleneseTestBase.fail(Se leneseTestBase.java:372) at com.thoughtworks.selenium.SeleneseTestBase.assertT rue(SeleneseTestBase.java:377) at com.thoughtworks.selenium.SeleneseTestBase.assertT rue(SeleneseTestBase.java:381) at com.thoughtworks.selenium.SeleneseTestBase.verifyT rue(SeleneseTestBase.java:139) at com.thoughtworks.selenium.SeleneseTestCase.verifyT rue(SeleneseTestCase.java:133) at com.sel.AutoAssignResponsibilityVerification.testA utoAssignResponsibilityVerification(AutoAssignResp onsibilityVerification.java:50) at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknow n Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Un known Source)
  3. 0

    EJB3 « Middleware Magic

    middlewaremagic.com | 1 year ago
    java.lang.AssertionError: java.lang.ClassNotFoundException: com.abc.bcd.GetCredit at weblogic.ejb.container.internal.RemoteBusinessIntfGenerator.generateRemoteInterface (RemoteBusinessIntfGenerator.java:57) at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.readObject (RemoteBusinessIntfProxy.java:205)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    BinaryLogClientIntegrationTest has timezone-related failures

    GitHub | 3 years ago | sacundim
    java.lang.AssertionError: 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]
  6. 0

    I am failing the test

    Coderanch | 2 years ago | amir Ghannad
    java.lang.AssertionError: expected:<1> but was:<0> at org.junit.Assert.fail(Assert.java:88)... java.lang.AssertionError: expected:<1> but was:<0>

    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. 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()
    2. Java RT
      Method.invoke
      1. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      2. java.lang.reflect.Method.invoke(Method.java:498)
      2 frames
    3. JUnit
      FrameworkMethod$1.runReflectiveCall
      1. org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50)
      1 frame