java.lang.AssertionError: expected size:<3> but was:<0> for <[]>

GitHub | mslama-work | 9 months 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

    GitHub comment 295#243721344

    GitHub | 9 months ago | mslama-work
    java.lang.AssertionError: expected size:<3> but was:<0> for <[]>
  2. 0

    DAO updates database in one method but doesn't in other

    Stack Overflow | 3 years ago | MrPlow
    java.lang.AssertionError: expected size:&lt;0&gt; but was:&lt;1&gt; for &lt;[com.redacted.dto.ClientDTO@e542e8ee]&gt;

    Root Cause Analysis

    1. java.lang.AssertionError

      expected size:<3> but was:<0> for <[]>

      at org.fest.assertions.Fail.failure()
    2. FEST Fluent Assertions
      GroupAssert.hasSize
      1. org.fest.assertions.Fail.failure(Fail.java:228)
      2. org.fest.assertions.Assert.failure(Assert.java:149)
      3. org.fest.assertions.GroupAssert.hasSize(GroupAssert.java:89)
      3 frames
    3. org.sonar.plugins
      CssSquidSensorTest.should_execute_and_save_issues_on_file_starting_with_BOM
      1. org.sonar.plugins.css.CssSquidSensorTest.should_execute_and_save_issues(CssSquidSensorTest.java:108)
      2. org.sonar.plugins.css.CssSquidSensorTest.should_execute_and_save_issues_on_file_starting_with_BOM(CssSquidSensorTest.java:92)
      2 frames