use of com.vaadin.flow.server.communication.IndexHtmlResponse in project flow by vaadin.
the class CsrfIndexHtmlRequestListenerTest method setup.
@Before
public void setup() {
csrfIndexHtmlRequestListener = Mockito.spy(new CsrfIndexHtmlRequestListener());
vaadinRequest = Mockito.mock(VaadinRequest.class);
Mockito.doReturn(TEST_CONTEXT_PATH).when(vaadinRequest).getContextPath();
Mockito.doReturn(true).when(vaadinRequest).isSecure();
VaadinResponse vaadinResponse = Mockito.mock(VaadinResponse.class);
Document document = Mockito.mock(Document.class);
indexHtmlResponse = new IndexHtmlResponse(vaadinRequest, vaadinResponse, document);
}
Aggregations