java.lang.AssertionError: Expected: a collection with size <0> but: collection size was <1>

Sonatype JIRA | Michael Prescott | 2 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.

Root Cause Analysis

  1. java.lang.AssertionError

    Expected: a collection with size <0> but: collection size was <1>

    at org.hamcrest.MatcherAssert.assertThat()
  2. Hamcrest
    MatcherAssert$assertThat.callStatic
    1. org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
    2. org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:8)
    3. org.hamcrest.MatcherAssert$assertThat.callStatic(Unknown Source)
    3 frames
  3. Groovy
    AbstractCallSite.callStatic
    1. org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallStatic(CallSiteArray.java:53)
    2. org.codehaus.groovy.runtime.callsite.AbstractCallSite.callStatic(AbstractCallSite.java:157)
    2 frames