@Test void shouldReturnHighCountException() { Report issues = new Report(); PropertyStatistics statistics = new PropertyStatistics(issues, "category", Function.identity()); assertThatThrownBy(() -> statistics.getHighCount(KEY)) .isInstanceOf(NoSuchElementException.class) .hasMessageContaining(KEY); }
public long getHighCount(final String key) { return getReportFor(key).getSizeOf(Severity.WARNING_HIGH); }
PropertyStatistics { public long getHighCount(final String key) { return getReportFor(key).getSizeOf(Severity.WARNING_HIGH); } }
PropertyStatistics { public long getHighCount(final String key) { return getReportFor(key).getSizeOf(Severity.WARNING_HIGH); } PropertyStatistics(final Report report,
            final String property, final Function<String, String> propertyFormatter); }
PropertyStatistics { public long getHighCount(final String key) { return getReportFor(key).getSizeOf(Severity.WARNING_HIGH); } PropertyStatistics(final Report report,
            final String property, final Function<String, String> propertyFormatter); int getTotal(); String getProperty(); String getDisplayName(final String key); String getToolTip(final String key); Set<String> getKeys(); int getMax(); long getCount(final String key); long getErrorsCount(final String key); long getHighCount(final String key); long getNormalCount(final String key); long getLowCount(final String key); }
PropertyStatistics { public long getHighCount(final String key) { return getReportFor(key).getSizeOf(Severity.WARNING_HIGH); } PropertyStatistics(final Report report,
            final String property, final Function<String, String> propertyFormatter); int getTotal(); String getProperty(); String getDisplayName(final String key); String getToolTip(final String key); Set<String> getKeys(); int getMax(); long getCount(final String key); long getErrorsCount(final String key); long getHighCount(final String key); long getNormalCount(final String key); long getLowCount(final String key);  }