Class MockQuarkusServletService

All Implemented Interfaces:
Serializable

public class MockQuarkusServletService extends QuarkusVaadinServletService
A mocking service that performs three very important tasks: The class is intentionally opened, to be extensible in user's library.
Since:
1.0
See Also:
  • Constructor Details

    • MockQuarkusServletService

      public MockQuarkusServletService(QuarkusVaadinServlet servlet, DeploymentConfiguration configuration, jakarta.enterprise.inject.spi.BeanManager beanManager, com.vaadin.browserless.internal.UIFactory uiFactory)
      Creates a new QuarkusVaadinServletService for testing.
      Parameters:
      servlet - the Quarkus Vaadin servlet.
      configuration - the deployment configuration.
      beanManager - the CDI bean manager.
      uiFactory - the factory used to build Flow UIs.
  • Method Details

    • isAtmosphereAvailable

      protected boolean isAtmosphereAvailable()
      Description copied from class: VaadinService
      Checks whether Atmosphere is available for use.
      Overrides:
      isAtmosphereAvailable in class VaadinService
      Returns:
      true if Atmosphere is available, false otherwise
    • getMainDivId

      public String getMainDivId(VaadinSession session, VaadinRequest request)
      Description copied from class: VaadinService
      Creates and returns a unique ID for the DIV where the UI is to be rendered.
      Overrides:
      getMainDivId in class VaadinServletService
      Parameters:
      session - The service session to which the bootstrapped UI will belong.
      request - The request for which a div id is needed
      Returns:
      the id to use in the DOM
    • createVaadinSession

      protected VaadinSession createVaadinSession(VaadinRequest request)
      Description copied from class: VaadinService
      Creates a new Vaadin session for this service and request.
      Overrides:
      createVaadinSession in class VaadinService
      Parameters:
      request - The request for which to create a VaadinSession
      Returns:
      A new VaadinSession