@Test public void testClearHover() { final HTMLElement hoverElement = mock(HTMLElement.class); hoverElement.classList = mock(DOMTokenList.class); when(dragArea.querySelector(".kie-dnd-hover")).thenReturn(hoverElement); view.clearHover(); verify(hoverElement.classList).remove(HOVER); }
void clearHover() { querySelector(getDragArea()) .getHoverElement() .ifPresent(DNDListDOMHelper::asNonHover); }
DNDListComponentView implements DNDListComponent.View { void clearHover() { querySelector(getDragArea()) .getHoverElement() .ifPresent(DNDListDOMHelper::asNonHover); } }
DNDListComponentView implements DNDListComponent.View { void clearHover() { querySelector(getDragArea()) .getHoverElement() .ifPresent(DNDListDOMHelper::asNonHover); } @Inject  DNDListComponentView(final HTMLDivElement dragArea); }
DNDListComponentView implements DNDListComponent.View { void clearHover() { querySelector(getDragArea()) .getHoverElement() .ifPresent(DNDListDOMHelper::asNonHover); } @Inject  DNDListComponentView(final HTMLDivElement dragArea); @Override void init(final DNDListComponent presenter); @Override HTMLElement registerItem(final HTMLElement htmlElement); @Override void refreshItemsPosition(); @Override void refreshItemsHTML(); @Override void consolidateHierarchicalLevel(final boolean isElementsDraggedByUser); @Override void consolidateYPosition(); @Override void clear(); @Override Optional<HTMLElement> getPreviousElement(final Element reference); @Override void refreshDragAreaSize(); @Override HTMLDivElement getDragArea(); }
DNDListComponentView implements DNDListComponent.View { void clearHover() { querySelector(getDragArea()) .getHoverElement() .ifPresent(DNDListDOMHelper::asNonHover); } @Inject  DNDListComponentView(final HTMLDivElement dragArea); @Override void init(final DNDListComponent presenter); @Override HTMLElement registerItem(final HTMLElement htmlElement); @Override void refreshItemsPosition(); @Override void refreshItemsHTML(); @Override void consolidateHierarchicalLevel(final boolean isElementsDraggedByUser); @Override void consolidateYPosition(); @Override void clear(); @Override Optional<HTMLElement> getPreviousElement(final Element reference); @Override void refreshDragAreaSize(); @Override HTMLDivElement getDragArea();  }