@Test public void testClearSelection() { treeList.clearSelection(); verify(itemOne).setIsSelected(false); verify(itemTwo).setIsSelected(false); verify(itemThree).setIsSelected(false); }
public void clearSelection() { getCurrentItems().stream().forEach(item -> item.setIsSelected(false)); }
TreeList { public void clearSelection() { getCurrentItems().stream().forEach(item -> item.setIsSelected(false)); } }
TreeList { public void clearSelection() { getCurrentItems().stream().forEach(item -> item.setIsSelected(false)); } @Inject  TreeList(final View view); }
TreeList { public void clearSelection() { getCurrentItems().stream().forEach(item -> item.setIsSelected(false)); } @Inject  TreeList(final View view); void populate(final List<TreeListItem> items); void refresh(); List<TreeListItem> getCurrentItems(); void clear(); Node getElement(); void clearSelection(); List<TreeListItem> getSelectedItems(); void setOnSelectionChanged(final Consumer<List<TreeListItem>> onSelectionChanged); }
TreeList { public void clearSelection() { getCurrentItems().stream().forEach(item -> item.setIsSelected(false)); } @Inject  TreeList(final View view); void populate(final List<TreeListItem> items); void refresh(); List<TreeListItem> getCurrentItems(); void clear(); Node getElement(); void clearSelection(); List<TreeListItem> getSelectedItems(); void setOnSelectionChanged(final Consumer<List<TreeListItem>> onSelectionChanged);  }