Uses of Class
com.vaadin.browserless.BrowserlessConfiguration
Packages that use BrowserlessConfiguration
-
Uses of BrowserlessConfiguration in com.vaadin.browserless
Methods in com.vaadin.browserless that return BrowserlessConfigurationModifier and TypeMethodDescriptionBrowserlessConfiguration.Builder.build()Builds the configuration.static BrowserlessConfigurationBrowserlessConfiguration.empty()Gets a configuration that does not customize the Vaadin environment.static BrowserlessConfigurationBrowserlessConfiguration.from(BrowserlessTestConfig annotation) Creates a configuration from the givenBrowserlessTestConfigannotation.static BrowserlessConfigurationBrowserlessConfiguration.from(AnnotatedElement element) Creates a configuration from theBrowserlessTestConfigannotation potentially present on the given element.BrowserlessConfiguration.merge(BrowserlessConfiguration overrides) Creates a new configuration by merging the given configuration into this one.protected BrowserlessConfigurationBaseBrowserlessTest.testConfiguration()Gets the custom Vaadin configuration, such as application properties and feature flags, to apply to the mock Vaadin environment.Methods in com.vaadin.browserless with parameters of type BrowserlessConfigurationModifier and TypeMethodDescriptionBaseBrowserlessTest.allLookupServices(BrowserlessConfiguration configuration) Same asBaseBrowserlessTest.allLookupServices(), but for a configuration that has already been resolved.BrowserlessApplicationContext.forComponent(BrowserlessConfiguration configuration, Supplier<Component> componentFactory) Creates a self-contained application context for ad-hoc testing of a single component, applying the given custom Vaadin configuration (application properties, feature flags, lookup services) to the mocked environment.static BrowserlessUIContextBrowserlessUIContext.forComponent(BrowserlessConfiguration configuration, Component component) Shorthand for ad-hoc component testing of a single component, applying the given custom Vaadin configuration (application properties, feature flags, lookup services) to the mocked environment.static BrowserlessUIContextBrowserlessUIContext.forComponent(BrowserlessConfiguration configuration, Supplier<Component> componentFactory) Shorthand for ad-hoc component testing of a single component built by a factory, applying the given custom Vaadin configuration (application properties, feature flags, lookup services) to the mocked environment.BrowserlessConfiguration.merge(BrowserlessConfiguration overrides) Creates a new configuration by merging the given configuration into this one.BrowserlessApplicationContext.Builder.withConfiguration(BrowserlessConfiguration testConfiguration) Applies the given custom Vaadin configuration to this builder, replacing previously set entries with the same names.BrowserlessClassExtension.withConfiguration(BrowserlessConfiguration configuration) Applies the given custom Vaadin configuration to the tests using this extension.BrowserlessConfiguration.Builder.withConfiguration(BrowserlessConfiguration configuration) Applies all entries of the given configuration to this builder, replacing previously set application properties and feature flags with the same names, and accumulating lookup services and JavaScript handlers.BrowserlessExtension.withConfiguration(BrowserlessConfiguration configuration) Applies the given custom Vaadin configuration to the tests using this extension.SecuredBrowserlessApplicationContext.Builder.withConfiguration(BrowserlessConfiguration configuration) Forwards to the matching method on the underlyingBrowserlessApplicationContext.Builder. -
Uses of BrowserlessConfiguration in com.vaadin.browserless.internal
Methods in com.vaadin.browserless.internal with parameters of type BrowserlessConfigurationModifier and TypeMethodDescriptionstatic voidMockVaadin.setup(Routes routes, UIFactory uiFactory, Set<? extends Class<?>> lookupServices, BrowserlessConfiguration configuration) Mocks Vaadin for the current test method:static voidMockVaadin.setup(UIFactory uiFactory, VaadinServlet servlet, Set<? extends Class<?>> lookupServices, BrowserlessConfiguration configuration) Use this method when you need to provide a completely custom servlet (e.g.static VaadinServletServiceMockVaadin.setupServlet(VaadinServlet servlet, Set<? extends Class<?>> lookupServices, BrowserlessConfiguration configuration) Initializes the givenservletand its service, but does NOT create a session, UI, or set any thread-locals.