@Test public void testDeselect() { final Element element = mock(Element.class); final DOMTokenList domTokenList = mock(DOMTokenList.class); element.classList = domTokenList; doReturn(element).when(treeView).getSelectedElement(); treeView.deselect(); verify(domTokenList).remove("selected"); verify(treeView).deselect(element); }
@Override public void deselect() { deselect(getSelectedElement()); }
DecisionNavigatorTreeView implements DecisionNavigatorTreePresenter.View { @Override public void deselect() { deselect(getSelectedElement()); } }
DecisionNavigatorTreeView implements DecisionNavigatorTreePresenter.View { @Override public void deselect() { deselect(getSelectedElement()); } @Inject  DecisionNavigatorTreeView(final HTMLDivElement view,
                                     final HTMLDivElement items,
                                     final ManagedInstance<TreeItem> managedInstance,
                                     final Elemental2DomUtil util); }
DecisionNavigatorTreeView implements DecisionNavigatorTreePresenter.View { @Override public void deselect() { deselect(getSelectedElement()); } @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 void deselect() { deselect(getSelectedElement()); } @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();  }