I'm trying to unit-test a simple Spring Webflow. So far I can verify transitions between the states and check variables in the request, flash, view and flow scopes.
Somehow I cannot verify that an on-render action is executed. When I run the webflow in my web application, I can see the select populated with the results of that action, so the definition must be fine. When I debug through the Spring Webflow, I can see that there are no event listeners, but I cannot quite figure out why the array of the listeners is not being populated.
I'll keep digging through the code, but I wonder if anyone faced the same issue and how it was resolved.
If this is relevant, I am mocking the service with Mockito and injecting it by overriding configureFlowBuilderContext() and registering the mock service as a bean.