@Test void shouldReturnMaxValueZero() { Report issues = new Report(); PropertyStatistics statistics = new PropertyStatistics(issues, "category", Function.identity()); int value = statistics.getMax(); assertThat(value).isEqualTo(0); }
public int getMax() { return issuesByProperty.values().stream().mapToInt(Report::size).max().orElse(0); }
PropertyStatistics { public int getMax() { return issuesByProperty.values().stream().mapToInt(Report::size).max().orElse(0); } }
PropertyStatistics { public int getMax() { return issuesByProperty.values().stream().mapToInt(Report::size).max().orElse(0); } PropertyStatistics(final Report report,
            final String property, final Function<String, String> propertyFormatter); }
PropertyStatistics { public int getMax() { return issuesByProperty.values().stream().mapToInt(Report::size).max().orElse(0); } 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 int getMax() { return issuesByProperty.values().stream().mapToInt(Report::size).max().orElse(0); } 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);  }