IssuesTotalColumn extends ListViewColumn { @DataBoundSetter public void setSelectTools(final boolean selectTools) { this.selectTools = selectTools; } @DataBoundConstructor  IssuesTotalColumn(); @SuppressWarnings({"unused", "PMD.BooleanGetMethodName", "WeakerAccess"}) // called by Stapler boolean getSelectTools(); @DataBoundSetter void setSelectTools(final boolean selectTools); List<ToolSelection> getTools(); @DataBoundSetter void setTools(final List<ToolSelection> tools); String getName(); @DataBoundSetter void setName(final String name); StatisticProperties getType(); @DataBoundSetter void setType(final StatisticProperties type); @SuppressWarnings("WeakerAccess") // called bv view OptionalInt getTotal(final Job<?, ?> job); @SuppressWarnings("WeakerAccess") // called bv view List<AnalysisResultDescription> getDetails(final Job<?, ?> job); String getUrl(final Job<?, ?> job);  }
@Test void shouldShowTotalOfTwoActionsWhenSelectAllIsChecked() { IssuesTotalColumn column = createColumn(); column.setSelectTools(false); verifySumOfChecksStyleAndSpotBugs(column); }