Package com.github.mvysny.kaributesting.v10.spring
package com.github.mvysny.kaributesting.v10.spring
-
ClassesClassDescriptionMakes sure that the
MockSpringServlet.routesare properly registered, and thatMockSpringServletServiceis used instead of vanillaSpringVaadinServletService.A mocking service that performs three very important tasks: OverridesMockSpringServletService.isAtmosphereAvailable()to tell Vaadin that we don't have Atmosphere (otherwise Vaadin will crash) Provides some dummy value as a root ID viaMockSpringServletService.getMainDivId(com.vaadin.flow.server.VaadinSession, com.vaadin.flow.server.VaadinRequest)(otherwise the mocked servlet env will crash). Provides aMockSpringVaadinSessioninstead ofSpringVaadinSession. The class is intentionally opened, to be extensible in user's library.A Vaadin Session with one important difference: Creates a new session when this one is closed.