Is it possible to use mocks when testing Jmix 2 views?
From my understanding, the way that testing should be done is by using the viewNavigators.view(View.class).navigate()
However, is there a way to inject mocks into a custom load delegate for example?
I have tried adding
withAfterNavigationHandler(navEvent → {
navEvent.getView().setDataManager(mockDataManager);
}
but it doesn’t because its applied after the custom loadDelegate is run.