@Test public void testGetPositionY() { final Element element = mock(Element.class); final int expectedPositionY = 1; when(element.getAttribute(DATA_Y_POSITION)).thenReturn("1"); final int actualPositionY = dndListComponent.getPositionY(element); assertEquals(expectedPositionY, actualPositionY); }
public int getPositionY(final Element element) { return Position.getY(element); }
DNDListComponent { public int getPositionY(final Element element) { return Position.getY(element); } }
DNDListComponent { public int getPositionY(final Element element) { return Position.getY(element); } @Inject  DNDListComponent(final View view,
                            final DataTypeList dataTypeList); }
DNDListComponent { public int getPositionY(final Element element) { return Position.getY(element); } @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 int getPositionY(final Element element) { return Position.getY(element); } @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);  }