render from end-state bug fix for mvc and jsf
This commit is contained in:
@@ -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 });
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user