use of org.kie.workbench.common.dmn.client.widgets.grid.controls.list.ListSelector in project kie-wb-common by kiegroup.
the class ContextMenuViewTest method setUp.
@Before
public void setUp() throws NoSuchFieldException, IllegalAccessException {
presenter = mock(ContextMenu.class);
listSelector = mock(ListSelector.class);
final Field field = DomGlobal.class.getDeclaredField("document");
field.setAccessible(true);
Field modifiersField = Field.class.getDeclaredField("modifiers");
modifiersField.setAccessible(true);
modifiersField.setInt(field, field.getModifiers() & ~Modifier.FINAL);
field.set(DomGlobal.class, mock(HTMLDocument.class));
contextMenuView = new ContextMenuView(listSelector);
contextMenuView.init(presenter);
}
Aggregations