JSF Test Framework: Mock 1.1.2

org.jboss.test.faces.mock.application
Class MockStateManager

java.lang.Object
  extended by javax.faces.application.StateManager
      extended by org.jboss.test.faces.mock.application.MockStateManager
All Implemented Interfaces:
FacesMockController.MockObject

public class MockStateManager
extends javax.faces.application.StateManager
implements FacesMockController.MockObject


Nested Class Summary
 
Nested classes/interfaces inherited from class javax.faces.application.StateManager
javax.faces.application.StateManager.SerializedView
 
Field Summary
 
Fields inherited from class javax.faces.application.StateManager
FULL_STATE_SAVING_VIEW_IDS_PARAM_NAME, IS_BUILDING_INITIAL_STATE, IS_SAVING_STATE, PARTIAL_STATE_SAVING_PARAM_NAME, STATE_SAVING_METHOD_CLIENT, STATE_SAVING_METHOD_PARAM_NAME, STATE_SAVING_METHOD_SERVER
 
Constructor Summary
MockStateManager()
          Default constructor
MockStateManager(org.easymock.IMocksControl control, String name)
           
 
Method Summary
 boolean equals(Object obj)
           
 org.easymock.IMocksControl getControl()
           
 String getViewState(javax.faces.context.FacesContext arg0)
           
 int hashCode()
           
 boolean isSavingStateInClient(javax.faces.context.FacesContext arg0)
           
 javax.faces.component.UIViewRoot restoreView(javax.faces.context.FacesContext arg0, String arg1, String arg2)
           
 javax.faces.application.StateManager.SerializedView saveSerializedView(javax.faces.context.FacesContext arg0)
           
 Object saveView(javax.faces.context.FacesContext arg0)
           
 String toString()
           
 void writeState(javax.faces.context.FacesContext arg0, Object arg1)
           
 void writeState(javax.faces.context.FacesContext arg0, javax.faces.application.StateManager.SerializedView arg1)
           
 
Methods inherited from class javax.faces.application.StateManager
getComponentStateToSave, getTreeStructureToSave, restoreComponentState, restoreTreeStructure
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MockStateManager

public MockStateManager()
Default constructor


MockStateManager

public MockStateManager(org.easymock.IMocksControl control,
                        String name)
Parameters:
control -
Method Detail

getControl

public org.easymock.IMocksControl getControl()
Specified by:
getControl in interface FacesMockController.MockObject

restoreView

public javax.faces.component.UIViewRoot restoreView(javax.faces.context.FacesContext arg0,
                                                    String arg1,
                                                    String arg2)
Specified by:
restoreView in class javax.faces.application.StateManager

writeState

public void writeState(javax.faces.context.FacesContext arg0,
                       Object arg1)
Overrides:
writeState in class javax.faces.application.StateManager

writeState

public void writeState(javax.faces.context.FacesContext arg0,
                       javax.faces.application.StateManager.SerializedView arg1)
Overrides:
writeState in class javax.faces.application.StateManager

saveSerializedView

public javax.faces.application.StateManager.SerializedView saveSerializedView(javax.faces.context.FacesContext arg0)
Overrides:
saveSerializedView in class javax.faces.application.StateManager

saveView

public Object saveView(javax.faces.context.FacesContext arg0)
Overrides:
saveView in class javax.faces.application.StateManager

isSavingStateInClient

public boolean isSavingStateInClient(javax.faces.context.FacesContext arg0)
Overrides:
isSavingStateInClient in class javax.faces.application.StateManager

getViewState

public String getViewState(javax.faces.context.FacesContext arg0)
Overrides:
getViewState in class javax.faces.application.StateManager

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

JSF Test Framework: Mock 1.1.2

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.