List of usage examples for com.vaadin.client.ui.ui UIConnector getActiveTheme
public String getActiveTheme()
From source file:org.eclipse.hawkbit.ui.dd.client.criteria.CriterionTestHelper.java
License:Open Source License
static VDragEvent createMockedVDragEvent(String dragSourceId, Widget widget, String theme) { VDragEvent dragEvent = createMockedVDragEvent(dragSourceId, widget); ApplicationConnection connection = Mockito.mock(ApplicationConnection.class); when(dragEvent.getTransferable().getDragSource().getConnection()).thenReturn(connection); UIConnector uiConnector = Mockito.mock(UIConnector.class); when(connection.getUIConnector()).thenReturn(uiConnector); when(uiConnector.getActiveTheme()).thenReturn(theme); return dragEvent; }