@Test public void testTreeItemUpdateDataUUID() { final DecisionNavigatorItem item = mock(DecisionNavigatorItem.class); final HTMLElement element = mock(HTMLElement.class); final String uuid = "uuid"; doReturn(item).when(treeItem).getItem(); doReturn(element).when(treeItem).getElement(); when(item.getUUID()).thenReturn(uuid); treeItem.updateDataUUID(); verify(element).setAttribute("data-uuid", uuid); }
@Override public HTMLElement getElement() { return view; }
DecisionNavigatorTreeView implements DecisionNavigatorTreePresenter.View { @Override public HTMLElement getElement() { return view; } }
DecisionNavigatorTreeView implements DecisionNavigatorTreePresenter.View { @Override public HTMLElement getElement() { return view; } @Inject  DecisionNavigatorTreeView(final HTMLDivElement view,
                                     final HTMLDivElement items,
                                     final ManagedInstance<TreeItem> managedInstance,
                                     final Elemental2DomUtil util); }
DecisionNavigatorTreeView implements DecisionNavigatorTreePresenter.View { @Override public HTMLElement getElement() { return view; } @Inject  DecisionNavigatorTreeView(final HTMLDivElement view,
                                     final HTMLDivElement items,
                                     final ManagedInstance<TreeItem> managedInstance,
                                     final Elemental2DomUtil util); @Override void init(final DecisionNavigatorTreePresenter presenter); @Override HTMLElement getElement(); @Override void clean(); @Override void setup(final List<DecisionNavigatorItem> items); @Override void select(final String uuid); @Override void deselect(); }
DecisionNavigatorTreeView implements DecisionNavigatorTreePresenter.View { @Override public HTMLElement getElement() { return view; } @Inject  DecisionNavigatorTreeView(final HTMLDivElement view,
                                     final HTMLDivElement items,
                                     final ManagedInstance<TreeItem> managedInstance,
                                     final Elemental2DomUtil util); @Override void init(final DecisionNavigatorTreePresenter presenter); @Override HTMLElement getElement(); @Override void clean(); @Override void setup(final List<DecisionNavigatorItem> items); @Override void select(final String uuid); @Override void deselect();  }