Class ViewNavigationDelegate<N extends AbstractViewNavigator>
java.lang.Object
io.jmix.flowui.testassist.navigation.ViewNavigationDelegate<N>
- Type Parameters:
N- type of navigator (e.g.ViewNavigator, etc)
Class is designed for processing navigation in UI integration tests.
For building backward navigation URL it uses:
- "http://"
- "localhost"
RouteParametersQueryParameters
During the navigation Vaadin ignores "http://" and "localhost" parts.
It saves current URL in VaadinSession and for new navigation will be used as backward
navigation URL.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected ViewNavigationSupportprotected ViewSupport -
Constructor Summary
ConstructorsConstructorDescriptionViewNavigationDelegate(ViewNavigationSupport navigationSupport, ViewSupport viewSupport) -
Method Summary
Modifier and TypeMethodDescriptionprotected URLprotected StringDuring the processing URL for navigation Vaadin ignores protocol and host.protected URLprotected StringDuring the processing URL for navigation Vaadin ignores protocol and host.protected com.vaadin.flow.router.RouteConfigurationvoidprocessNavigation(N navigator, Class<? extends View<?>> viewClass, com.vaadin.flow.router.RouteParameters routeParameters, com.vaadin.flow.router.QueryParameters queryParameters, Consumer<View<?>> fireAfterViewNavigation) protected voidsaveCurrentNavigation(Class<? extends View<?>> viewClass, com.vaadin.flow.router.RouteParameters routeParameters, com.vaadin.flow.router.QueryParameters queryParameters)
-
Field Details
-
CURRENT_NAVIGATION_URL_ATTRIBUTE
- See Also:
-
viewSupport
-
-
Constructor Details
-
Method Details
-
fetchCurrentUrl
-
getRouteConfiguration
protected com.vaadin.flow.router.RouteConfiguration getRouteConfiguration() -
getHostUrl
-
getProtocol
During the processing URL for navigation Vaadin ignores protocol and host. The default value is "http://".- Returns:
- protocol
-
getHostAddress
During the processing URL for navigation Vaadin ignores protocol and host. The default value is "localhost".- Returns:
- host address