Skip to content

Commit

Permalink
Refactor test case.
Browse files Browse the repository at this point in the history
  • Loading branch information
uhafner committed Mar 6, 2024
1 parent 9e6bb4a commit 3a6c847
Show file tree
Hide file tree
Showing 3 changed files with 135 additions and 462 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,9 @@ public long getNewCount(final String key) {
* @param key
* the property instance
*
* @return the number of high-severity issues
* @return the number of error issues
*/
public long getErrorsCount(final String key) {
public long getErrorCount(final String key) {
return getReportFor(key).getSizeOf(Severity.ERROR);
}

Expand Down
2 changes: 1 addition & 1 deletion plugin/src/main/resources/issues/property.jelly
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
<td class="text-end">${count}</td>
<td class="text-end">${newCount}</td>
<td>
<issues:severity-distribution max="${t.max}" error="${t.getErrorsCount(key)}"
<issues:severity-distribution max="${t.max}" error="${t.getErrorCount(key)}"
high="${t.getHighCount(key)}"
normal="${t.getNormalCount(key)}" low="${t.getLowCount(key)}"/>
</td>
Expand Down
Loading

0 comments on commit 3a6c847

Please sign in to comment.