org.apache.myfaces.test.mock
Class MockFacesContext20

java.lang.Object
  extended by javax.faces.context.FacesContext
      extended by org.apache.myfaces.test.mock.MockFacesContext
          extended by org.apache.myfaces.test.mock.MockFacesContext12
              extended by org.apache.myfaces.test.mock.MockFacesContext20

public class MockFacesContext20
extends MockFacesContext12

Mock implementation of FacesContext that includes the semantics added by JavaServer Faces 2.0.

Since:
1.0.0
Author:
Leonardo Uribe

Field Summary
 
Fields inherited from class org.apache.myfaces.test.mock.MockFacesContext
messages
 
Constructor Summary
MockFacesContext20()
           
MockFacesContext20(javax.faces.context.ExternalContext externalContext)
           
MockFacesContext20(javax.faces.context.ExternalContext externalContext, javax.faces.lifecycle.Lifecycle lifecycle)
           
 
Method Summary
 Map<Object,Object> getAttributes()
           
 javax.faces.event.PhaseId getCurrentPhaseId()
           
 javax.faces.context.ExceptionHandler getExceptionHandler()
           
 List<javax.faces.application.FacesMessage> getMessageList()
           
 List<javax.faces.application.FacesMessage> getMessageList(String clientId)
           
 javax.faces.context.PartialViewContext getPartialViewContext()
           
 boolean isPostback()
           
 boolean isProcessingEvents()
           
 boolean isValidationFailed()
           
 void setCurrentPhaseId(javax.faces.event.PhaseId currentPhaseId)
           
 void setExceptionHandler(javax.faces.context.ExceptionHandler exceptionHandler)
           
 void setPostback(boolean value)
           
 void setProcessingEvents(boolean processingEvents)
           
 void validationFailed()
           
 
Methods inherited from class org.apache.myfaces.test.mock.MockFacesContext12
getELContext, release, setELContext
 
Methods inherited from class org.apache.myfaces.test.mock.MockFacesContext
addMessage, getApplication, getClientIdsWithMessages, getExternalContext, getMaximumSeverity, getMessages, getMessages, getRenderKit, getRenderResponse, getResponseComplete, getResponseStream, getResponseWriter, getViewRoot, renderResponse, responseComplete, setApplication, setCurrentInstance, setExternalContext, setResponseStream, setResponseWriter, setViewRoot
 
Methods inherited from class javax.faces.context.FacesContext
getCurrentInstance, isProjectStage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockFacesContext20

public MockFacesContext20()

MockFacesContext20

public MockFacesContext20(javax.faces.context.ExternalContext externalContext)

MockFacesContext20

public MockFacesContext20(javax.faces.context.ExternalContext externalContext,
                          javax.faces.lifecycle.Lifecycle lifecycle)
Method Detail

isPostback

public boolean isPostback()
Overrides:
isPostback in class javax.faces.context.FacesContext

setPostback

public void setPostback(boolean value)

getCurrentPhaseId

public javax.faces.event.PhaseId getCurrentPhaseId()
Overrides:
getCurrentPhaseId in class javax.faces.context.FacesContext

setCurrentPhaseId

public void setCurrentPhaseId(javax.faces.event.PhaseId currentPhaseId)
Overrides:
setCurrentPhaseId in class javax.faces.context.FacesContext

getAttributes

public Map<Object,Object> getAttributes()
Overrides:
getAttributes in class javax.faces.context.FacesContext

getPartialViewContext

public javax.faces.context.PartialViewContext getPartialViewContext()
Overrides:
getPartialViewContext in class javax.faces.context.FacesContext

isProcessingEvents

public boolean isProcessingEvents()
Overrides:
isProcessingEvents in class javax.faces.context.FacesContext

setProcessingEvents

public void setProcessingEvents(boolean processingEvents)
Overrides:
setProcessingEvents in class javax.faces.context.FacesContext

getExceptionHandler

public javax.faces.context.ExceptionHandler getExceptionHandler()
Overrides:
getExceptionHandler in class javax.faces.context.FacesContext

setExceptionHandler

public void setExceptionHandler(javax.faces.context.ExceptionHandler exceptionHandler)
Overrides:
setExceptionHandler in class javax.faces.context.FacesContext

getMessageList

public List<javax.faces.application.FacesMessage> getMessageList()
Overrides:
getMessageList in class javax.faces.context.FacesContext

getMessageList

public List<javax.faces.application.FacesMessage> getMessageList(String clientId)
Overrides:
getMessageList in class javax.faces.context.FacesContext

isValidationFailed

public boolean isValidationFailed()
Overrides:
isValidationFailed in class javax.faces.context.FacesContext

validationFailed

public void validationFailed()
Overrides:
validationFailed in class javax.faces.context.FacesContext


Copyright © 2014 The Apache Software Foundation. All Rights Reserved.