org.jboss.seam.faces.test.environment
Class MockFacesContext
java.lang.Object
javax.faces.context.FacesContext
org.jboss.seam.faces.test.environment.MockFacesContext
public class MockFacesContext
- extends javax.faces.context.FacesContext
- Author:
- Dan Allen
| Methods inherited from class javax.faces.context.FacesContext |
getAttributes, getCurrentInstance, getELContext, getExceptionHandler, getMessageList, getMessageList, getPartialViewContext, isPostback, isProcessingEvents, isProjectStage, isValidationFailed, setCurrentInstance, setExceptionHandler, setProcessingEvents, validationFailed |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MockFacesContext
public MockFacesContext()
set
public javax.faces.context.FacesContext set()
release
public void release()
- Specified by:
release in class javax.faces.context.FacesContext
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
getApplication
public javax.faces.application.Application getApplication()
- Specified by:
getApplication in class javax.faces.context.FacesContext
getClientIdsWithMessages
public Iterator<String> getClientIdsWithMessages()
- Specified by:
getClientIdsWithMessages in class javax.faces.context.FacesContext
getExternalContext
public javax.faces.context.ExternalContext getExternalContext()
- Specified by:
getExternalContext in class javax.faces.context.FacesContext
getMaximumSeverity
public javax.faces.application.FacesMessage.Severity getMaximumSeverity()
- Specified by:
getMaximumSeverity in class javax.faces.context.FacesContext
getMessages
public Iterator<javax.faces.application.FacesMessage> getMessages()
- Specified by:
getMessages in class javax.faces.context.FacesContext
getMessages
public Iterator<javax.faces.application.FacesMessage> getMessages(String clientId)
- Specified by:
getMessages in class javax.faces.context.FacesContext
getRenderKit
public javax.faces.render.RenderKit getRenderKit()
- Specified by:
getRenderKit in class javax.faces.context.FacesContext
getRenderResponse
public boolean getRenderResponse()
- Specified by:
getRenderResponse in class javax.faces.context.FacesContext
getResponseComplete
public boolean getResponseComplete()
- Specified by:
getResponseComplete in class javax.faces.context.FacesContext
getResponseStream
public javax.faces.context.ResponseStream getResponseStream()
- Specified by:
getResponseStream in class javax.faces.context.FacesContext
setResponseStream
public void setResponseStream(javax.faces.context.ResponseStream stream)
- Specified by:
setResponseStream in class javax.faces.context.FacesContext
getResponseWriter
public javax.faces.context.ResponseWriter getResponseWriter()
- Specified by:
getResponseWriter in class javax.faces.context.FacesContext
setResponseWriter
public void setResponseWriter(javax.faces.context.ResponseWriter writer)
- Specified by:
setResponseWriter in class javax.faces.context.FacesContext
getViewRoot
public javax.faces.component.UIViewRoot getViewRoot()
- Specified by:
getViewRoot in class javax.faces.context.FacesContext
setViewRoot
public void setViewRoot(javax.faces.component.UIViewRoot uivr)
- Specified by:
setViewRoot in class javax.faces.context.FacesContext
addMessage
public void addMessage(String clientId,
javax.faces.application.FacesMessage message)
- Specified by:
addMessage in class javax.faces.context.FacesContext
renderResponse
public void renderResponse()
- Specified by:
renderResponse in class javax.faces.context.FacesContext
responseComplete
public void responseComplete()
- Specified by:
responseComplete in class javax.faces.context.FacesContext
Copyright © 2009-2011 Seam Framework. All Rights Reserved.