Beginning support for "legacy" migration, allowing pure JSF requests to be used alongside Web Flow requests.

This commit is contained in:
Jeremy Grelle
2007-10-30 00:08:34 +00:00
parent a49c5c7ea0
commit 978a83baf7
6 changed files with 34 additions and 10 deletions

View File

@@ -20,7 +20,7 @@ import org.springframework.webflow.execution.RequestContextHolder;
public class FlowActionListenerTests extends TestCase {
FlowActionListener listener = new FlowActionListener();
FlowActionListener listener;
JSFMockHelper jsfMock = new JSFMockHelper();
@@ -29,6 +29,7 @@ public class FlowActionListenerTests extends TestCase {
protected void setUp() throws Exception {
jsfMock.setUp();
listener = new FlowActionListener(jsfMock.application().getActionListener());
RequestContextHolder.setRequestContext(context);
AttributeMap flash = new LocalAttributeMap();
expect(context.getFlashScope()).andStubReturn(flash);