@Test void shouldReturnCountEmpty() { PropertyStatistics statistics = new PropertyStatistics(new Report(), "category", Function.identity()); String key = KEY; assertThatThrownBy(() -> statistics.getCount(key)) .isInstanceOf(NoSuchElementException.class) .hasMessageContaining(key); }
public long getCount(final String key) { return getReportFor(key).size(); }
PropertyStatistics { public long getCount(final String key) { return getReportFor(key).size(); } }
PropertyStatistics { public long getCount(final String key) { return getReportFor(key).size(); } PropertyStatistics(final Report report,
            final String property, final Function<String, String> propertyFormatter); }
PropertyStatistics { public long getCount(final String key) { return getReportFor(key).size(); } 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 getCount(final String key) { return getReportFor(key).size(); } 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);  }