Search in sources :

Example 1 with PageState

use of com.vaadin.shared.ui.ui.PageState in project SORMAS-Project by hzi-braunschweig.

the class ExpressionProcessorTest method setupClass.

@BeforeClass
public static void setupClass() {
    UI ui = new SormasUI();
    final MockedStatic<UI> uiMockedStatic = Mockito.mockStatic(UI.class);
    uiMockedStatic.when(UI::getCurrent).thenReturn(ui);
    Page page = new Page(UI.getCurrent(), new PageState());
    MockedStatic<Page> pageMockedStatic = Mockito.mockStatic(Page.class);
    pageMockedStatic.when(Page::getCurrent).thenReturn(page);
}
Also used : UI(com.vaadin.ui.UI) SormasUI(de.symeda.sormas.ui.SormasUI) PageState(com.vaadin.shared.ui.ui.PageState) SormasUI(de.symeda.sormas.ui.SormasUI) Page(com.vaadin.server.Page) BeforeClass(org.junit.BeforeClass)

Aggregations

Page (com.vaadin.server.Page)1 PageState (com.vaadin.shared.ui.ui.PageState)1 UI (com.vaadin.ui.UI)1 SormasUI (de.symeda.sormas.ui.SormasUI)1 BeforeClass (org.junit.BeforeClass)1