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);
}
Aggregations