@Test public void testPosition() { final HTMLElement element = mock(HTMLElement.class); final int expected = 1; when(element.getAttribute(DATA_POSITION)).thenReturn(String.valueOf(expected)); final int actual = helper.position(element); assertEquals(expected, actual); }
int position(final Element element) { return Integer.valueOf(element.getAttribute(DATA_POSITION)); }
DragAndDropHelper { int position(final Element element) { return Integer.valueOf(element.getAttribute(DATA_POSITION)); } }
DragAndDropHelper { int position(final Element element) { return Integer.valueOf(element.getAttribute(DATA_POSITION)); } DragAndDropHelper(final HTMLElement dragArea,
                             final HTMLElement addButtonContainer); }
DragAndDropHelper { int position(final Element element) { return Integer.valueOf(element.getAttribute(DATA_POSITION)); } DragAndDropHelper(final HTMLElement dragArea,
                             final HTMLElement addButtonContainer);  }
DragAndDropHelper { int position(final Element element) { return Integer.valueOf(element.getAttribute(DATA_POSITION)); } DragAndDropHelper(final HTMLElement dragArea,
                             final HTMLElement addButtonContainer);   }