@Test public void testRegisterNewItem() { final HTMLElement htmlElement = mock(HTMLElement.class); final HTMLElement expectedElement = mock(HTMLElement.class); when(view.registerItem(htmlElement)).thenReturn(expectedElement); final HTMLElement actualElement = dndListComponent.registerNewItem(htmlElement); assertEquals(expectedElement, actualElement); }
public HTMLElement registerNewItem(final HTMLElement htmlElement) { return view.registerItem(htmlElement); }
DNDListComponent { public HTMLElement registerNewItem(final HTMLElement htmlElement) { return view.registerItem(htmlElement); } }
DNDListComponent { public HTMLElement registerNewItem(final HTMLElement htmlElement) { return view.registerItem(htmlElement); } @Inject  DNDListComponent(final View view,
                            final DataTypeList dataTypeList); }
DNDListComponent { public HTMLElement registerNewItem(final HTMLElement htmlElement) { return view.registerItem(htmlElement); } @Inject  DNDListComponent(final View view,
                            final DataTypeList dataTypeList); void refreshItemsPosition(); void refreshItemsCSSAndHTMLPosition(); HTMLElement registerNewItem(final HTMLElement htmlElement); HTMLElement getElement(); HTMLElement getDragArea(); void consolidateYPosition(); Optional<HTMLElement> getPreviousElement(final Element reference); void clear(); void setPositionX(final Element element,
                             final double positionX); void setPositionY(final Element element,
                             final double positionY); int getPositionY(final Element element); void setOnDropItem(final BiConsumer<Element, Element> onDropItem); void refreshDragAreaSize(); void setInitialPositionY(final HTMLElement dragAndDropElement,
                                    final List<HTMLElement> children); void setInitialHiddenPositionY(final HTMLElement itemElement); void highlightLevel(final HTMLElement htmlElement); }
DNDListComponent { public HTMLElement registerNewItem(final HTMLElement htmlElement) { return view.registerItem(htmlElement); } @Inject  DNDListComponent(final View view,
                            final DataTypeList dataTypeList); void refreshItemsPosition(); void refreshItemsCSSAndHTMLPosition(); HTMLElement registerNewItem(final HTMLElement htmlElement); HTMLElement getElement(); HTMLElement getDragArea(); void consolidateYPosition(); Optional<HTMLElement> getPreviousElement(final Element reference); void clear(); void setPositionX(final Element element,
                             final double positionX); void setPositionY(final Element element,
                             final double positionY); int getPositionY(final Element element); void setOnDropItem(final BiConsumer<Element, Element> onDropItem); void refreshDragAreaSize(); void setInitialPositionY(final HTMLElement dragAndDropElement,
                                    final List<HTMLElement> children); void setInitialHiddenPositionY(final HTMLElement itemElement); void highlightLevel(final HTMLElement htmlElement);  }