render from end-state bug fix for mvc and jsf

This commit is contained in:
Keith Donald
2008-07-12 23:15:44 +00:00
parent 1eef8a722d
commit aff78d5469
25 changed files with 180 additions and 1178 deletions

View File

@@ -86,6 +86,8 @@ public class JsfFinalResponseActionTests extends TestCase {
newRoot.setViewId(VIEW_ID);
newRoot.setRenderKitId("HTML_BASIC");
((MockViewHandler) viewHandler).setCreateView(newRoot);
context.inViewState();
EasyMock.expectLastCall().andReturn(Boolean.FALSE);
EasyMock.replay(new Object[] { context });

View File

@@ -102,6 +102,8 @@ public class JsfViewFactoryTests extends TestCase {
UIViewRoot newRoot = new UIViewRoot();
newRoot.setViewId(VIEW_ID);
((MockViewHandler) viewHandler).setCreateView(newRoot);
context.inViewState();
EasyMock.expectLastCall().andReturn(Boolean.TRUE);
EasyMock.replay(new Object[] { context });
@@ -130,6 +132,9 @@ public class JsfViewFactoryTests extends TestCase {
existingRoot.getChildren().add(input);
((MockViewHandler) viewHandler).setRestoreView(existingRoot);
context.inViewState();
EasyMock.expectLastCall().andReturn(Boolean.TRUE);
EasyMock.replay(new Object[] { context });
View restoredView = factory.getView(context);
@@ -171,6 +176,9 @@ public class JsfViewFactoryTests extends TestCase {
((MockViewHandler) viewHandler).setRestoreView(existingRoot);
context.inViewState();
EasyMock.expectLastCall().andReturn(Boolean.TRUE);
EasyMock.replay(new Object[] { context });
View restoredView = factory.getView(context);
@@ -201,6 +209,9 @@ public class JsfViewFactoryTests extends TestCase {
EasyMock.expect(context.getCurrentState()).andReturn(new NormalViewState());
context.inViewState();
EasyMock.expectLastCall().andReturn(Boolean.TRUE);
EasyMock.replay(new Object[] { context });
View restoredView = factory.getView(context);