@Test public void testGetDraggableElement() { final String selector = ".kie-dnd-draggable[data-y-position=\"42\"]"; final HTMLElement expectedElement = mock(HTMLElement.class); when(element.querySelector(selector)).thenReturn(expectedElement); final HTMLElement actualElement = querySelector(element).getDraggableElement(42).orElseThrow(RuntimeException::new); assertEquals(expectedElement, actualElement); }
static QuerySelector querySelector(final Element container) { return new QuerySelector(container); }
DNDListDOMHelper { static QuerySelector querySelector(final Element container) { return new QuerySelector(container); } }
DNDListDOMHelper { static QuerySelector querySelector(final Element container) { return new QuerySelector(container); }  }
DNDListDOMHelper { static QuerySelector querySelector(final Element container) { return new QuerySelector(container); }   }
DNDListDOMHelper { static QuerySelector querySelector(final Element container) { return new QuerySelector(container); }   static final String DRAGGING; }