@Test public void testGetCSSTop() { element.style = mock(CSSStyleDeclaration.class); when(element.style.getPropertyValue("top")).thenReturn("123px"); final int actualTop = getCSSTop(element); final int expectedTop = 123; assertEquals(expectedTop, actualTop); }
static int getCSSTop(final HTMLElement element) { return parseInt(element.style.getPropertyValue("top")); }
DNDListDOMHelper { static int getCSSTop(final HTMLElement element) { return parseInt(element.style.getPropertyValue("top")); } }
DNDListDOMHelper { static int getCSSTop(final HTMLElement element) { return parseInt(element.style.getPropertyValue("top")); }  }
DNDListDOMHelper { static int getCSSTop(final HTMLElement element) { return parseInt(element.style.getPropertyValue("top")); }   }
DNDListDOMHelper { static int getCSSTop(final HTMLElement element) { return parseInt(element.style.getPropertyValue("top")); }   static final String DRAGGING; }