This is similar to Spring Web Flow - How can I set up unit test with values already in conversationScope?
I've used the solution listed in that question to solve a conversationScope issue, but have been hitting a wall trying to do the same for FlowScope. For some reason, FlowExecution does not have a getFlowScope() method.
Any helps or general pointing in the right direction will be very much appreciated. Thanks!
Update:
To give more context, this is the line in the webflow I'm trying to test:
<evaluate expression="serviceFactory.getInstance(flowScope.config.country).startTransaction(flowScope.SomeList.get(0), 0)" />
and the relavant test statement is:
EasyMock.expect(serviceObjectMock.startTransaction(someObjectMock, 0)).andReturn(true);
and it fails silently. When I walk through the code in the debugger, I see that there was an IndexOutOfBoundsException on this call, which led to my assumption that I have to have the list somehow in flowScope.