java.lang.AssertionError: Expected: a collection with size <5> but: collection size was <3>

Sonatype JIRA | Marvin Herman Froeder | 5 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 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"
  2. 0

    RiverMongoInitialTimestampTest fails in isolation

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

    Automated exception search integrated into your IDE

  4. 0

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

    GitHub | 3 years ago | psura
    java.lang.AssertionError: Expected: is <2> but: was <1>
  5. 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. marcbouvierdav 3 times, last 1 day ago
  2. rsprangemeijer 1 times, last 3 weeks ago
  3. Adrien 15 times, last 3 weeks ago
  4. jpvee 53 times, last 2 months ago
  5. kjhdofjosvs 4 times, last 2 months ago
6 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: a collection with size <5> but: collection size was <3>

    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. org.sonatype.nexus
    Nexus4674UpdateGAVIndexIT.searchTest
    1. org.sonatype.nexus.integrationtests.nexus4674.Nexus4674UpdateGAVIndexIT.searchTest(Nexus4674UpdateGAVIndexIT.java:50)
    1 frame