Class TestListViewNavigationProcessor
java.lang.Object
io.jmix.flowui.view.navigation.AbstractNavigationProcessor<ListViewNavigator<?>>
io.jmix.flowui.view.navigation.ListViewNavigationProcessor
io.jmix.flowui.testassist.navigation.TestListViewNavigationProcessor
The main goal of this class is supporting backward navigation in UI integration tests.
The ListViewNavigationProcessor
is used for preparing and performing navigation to the
inheritor of StandardListView
.
To perform navigation the AbstractNavigationProcessor.processNavigation(AbstractViewNavigator)
method
checks whether backward navigation should be used or not. To get correct backward navigation URL it uses
information from client-side.
In UI integration tests there is no client-side, so backward navigation URL should be got by another way.
This is why TestListViewNavigationProcessor
replaces ListViewNavigationProcessor
and
delegates building backward navigation URL to ViewNavigationDelegate
.
-
Field Summary
Fields inherited from class io.jmix.flowui.view.navigation.AbstractNavigationProcessor
detachRegistrationsCache, navigationSupport, viewRegistry, viewSupport
-
Constructor Summary
ConstructorDescriptionTestListViewNavigationProcessor
(ViewSupport viewSupport, ViewRegistry viewRegistry, ViewNavigationSupport navigationSupport, ViewNavigationDelegate<ListViewNavigator<?>> navigationDelegate) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
fetchCurrentURL
(com.vaadin.flow.function.SerializableConsumer<URL> callback) void
processNavigation
(ListViewNavigator<?> navigator) Methods inherited from class io.jmix.flowui.view.navigation.ListViewNavigationProcessor
inferViewClass
Methods inherited from class io.jmix.flowui.view.navigation.AbstractNavigationProcessor
fireAfterViewNavigation, getQueryParameters, getRouteParameters, getViewClass, unregisterViewDetachListener
-
Field Details
-
Constructor Details
-
Method Details
-
fetchCurrentURL
- Overrides:
fetchCurrentURL
in classAbstractNavigationProcessor<ListViewNavigator<?>>