java.lang.AssertionError: Expected: is "my name" but: was null

Stack Overflow | Saumya A | 4 months ago
  1. 0

    Initialize autowired objects in TestNG unit tests

    Stack Overflow | 4 months ago | Saumya A
    java.lang.AssertionError: Expected: is "my name" but: was null
  2. 0

    Build fails during :sagan-site:integTest

    GitHub | 3 years ago | as1s
    java.lang.AssertionError: Expected: "Spring Tool Suiteâ„¢ Downloads" but: was "Spring Tool Suite™ Downloads"
  3. 0

    RiverMongoInitialTimestampTest fails in isolation

    GitHub | 3 years ago | kdkeck
    java.lang.AssertionError: Expected: <0L> but: was <1L>
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    installing allure jenkins plugin (v2.1) fails on latest jenkins build 1.576

    GitHub | 2 years ago | psura
    java.lang.AssertionError: Expected: is <2> but: was <1>
  6. 0

    RtRepoITCase.iteratesEvents() fails if no events exist

    GitHub | 3 years ago | longtimeago
    java.lang.AssertionError: Expected: not an empty iterable but: was <https://api.github.com/repos/longtimeago/test_repo/issues/events>

  1. olle.hallin 1 times, last 2 weeks ago
  2. davidvanlaatum 7 times, last 1 month ago
  3. cesarnog 1 times, last 2 months ago
  4. tfr 1 times, last 4 months ago
  5. qoomon 1 times, last 4 months ago
1 more registered users
3 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. java.lang.AssertionError

    Expected: is "my name" but: was null

    at org.hamcrest.MatcherAssert.assertThat()
  2. Hamcrest
    MatcherAssert.assertThat
    1. org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
    2. org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:8)
    2 frames
  3. com.dev.impl
    CodeImplTest.testGetCode
    1. com.dev.impl.CodeImplTest.testGetCode(CodeImplTest.java:74)
    1 frame