@Test public void testListIndex() { final DecisionNavigatorItem item1 = mock(DecisionNavigatorItem.class); final DecisionNavigatorItem item2 = mock(DecisionNavigatorItem.class); final List<DecisionNavigatorItem> items = Arrays.asList(item1, item2); presenter.index(items); verify(presenter).index(item1); verify(presenter).index(item2); }
void index(final Collection<DecisionNavigatorItem> items) { items.forEach(this::index); }
DecisionNavigatorTreePresenter { void index(final Collection<DecisionNavigatorItem> items) { items.forEach(this::index); } }
DecisionNavigatorTreePresenter { void index(final Collection<DecisionNavigatorItem> items) { items.forEach(this::index); } @Inject  DecisionNavigatorTreePresenter(final View view); }
DecisionNavigatorTreePresenter { void index(final Collection<DecisionNavigatorItem> items) { items.forEach(this::index); } @Inject  DecisionNavigatorTreePresenter(final View view); View getView(); void setupItems(final List<DecisionNavigatorItem> items); void removeAllItems(); DecisionNavigatorItem getActiveParent(); void setActiveParentUUID(final String activeParentUUID); void selectItem(final String uuid); void deselectItem(); }
DecisionNavigatorTreePresenter { void index(final Collection<DecisionNavigatorItem> items) { items.forEach(this::index); } @Inject  DecisionNavigatorTreePresenter(final View view); View getView(); void setupItems(final List<DecisionNavigatorItem> items); void removeAllItems(); DecisionNavigatorItem getActiveParent(); void setActiveParentUUID(final String activeParentUUID); void selectItem(final String uuid); void deselectItem();  }