JSF Test Framework: Mock 1.1.2

org.jboss.test.faces.mock.context
Class MockFacesContext

java.lang.Object
  extended by javax.faces.context.FacesContext
      extended by org.jboss.test.faces.mock.context.MockFacesContext
All Implemented Interfaces:
FacesMockController.MockObject

public class MockFacesContext
extends javax.faces.context.FacesContext
implements FacesMockController.MockObject


Constructor Summary
MockFacesContext()
          Default constructor
MockFacesContext(org.easymock.IMocksControl control, String name)
           
 
Method Summary
 void addMessage(String arg0, javax.faces.application.FacesMessage arg1)
           
 boolean equals(Object obj)
           
 javax.faces.application.Application getApplication()
           
 Map getAttributes()
           
 Iterator getClientIdsWithMessages()
           
 org.easymock.IMocksControl getControl()
           
 javax.faces.event.PhaseId getCurrentPhaseId()
           
 javax.el.ELContext getELContext()
           
 javax.faces.context.ExceptionHandler getExceptionHandler()
           
 javax.faces.context.ExternalContext getExternalContext()
           
 javax.faces.application.FacesMessage.Severity getMaximumSeverity()
           
 List getMessageList()
           
 List getMessageList(String arg0)
           
 Iterator getMessages()
           
 Iterator getMessages(String arg0)
           
 javax.faces.context.PartialViewContext getPartialViewContext()
           
 javax.faces.render.RenderKit getRenderKit()
           
 boolean getRenderResponse()
           
 boolean getResponseComplete()
           
 javax.faces.context.ResponseStream getResponseStream()
           
 javax.faces.context.ResponseWriter getResponseWriter()
           
 javax.faces.component.UIViewRoot getViewRoot()
           
 int hashCode()
           
 boolean isPostback()
           
 boolean isProcessingEvents()
           
 boolean isProjectStage(javax.faces.application.ProjectStage arg0)
           
 boolean isReleased()
           
 boolean isValidationFailed()
           
 void release()
           
 void renderResponse()
           
 void responseComplete()
           
static void setCurrentInstance(javax.faces.context.FacesContext context)
           
 void setCurrentPhaseId(javax.faces.event.PhaseId arg0)
           
 void setExceptionHandler(javax.faces.context.ExceptionHandler arg0)
           
 void setProcessingEvents(boolean arg0)
           
 void setResponseStream(javax.faces.context.ResponseStream arg0)
           
 void setResponseWriter(javax.faces.context.ResponseWriter arg0)
           
 void setViewRoot(javax.faces.component.UIViewRoot arg0)
           
 String toString()
           
 void validationFailed()
           
 
Methods inherited from class javax.faces.context.FacesContext
getCurrentInstance
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MockFacesContext

public MockFacesContext()
Default constructor


MockFacesContext

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

getControl

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

getAttributes

public Map getAttributes()
Overrides:
getAttributes in class javax.faces.context.FacesContext

addMessage

public void addMessage(String arg0,
                       javax.faces.application.FacesMessage arg1)
Specified by:
addMessage in class javax.faces.context.FacesContext

getMessages

public Iterator getMessages()
Specified by:
getMessages in class javax.faces.context.FacesContext

getMessages

public Iterator getMessages(String arg0)
Specified by:
getMessages in class javax.faces.context.FacesContext

getApplication

public javax.faces.application.Application getApplication()
Specified by:
getApplication in class javax.faces.context.FacesContext

getPartialViewContext

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

getClientIdsWithMessages

public Iterator getClientIdsWithMessages()
Specified by:
getClientIdsWithMessages in class javax.faces.context.FacesContext

getELContext

public javax.el.ELContext getELContext()
Overrides:
getELContext 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 arg0)
Overrides:
setExceptionHandler 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

getMessageList

public List getMessageList()
Overrides:
getMessageList in class javax.faces.context.FacesContext

getMessageList

public List getMessageList(String arg0)
Overrides:
getMessageList 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

isValidationFailed

public boolean isValidationFailed()
Overrides:
isValidationFailed 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 arg0)
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 arg0)
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 arg0)
Specified by:
setViewRoot in class javax.faces.context.FacesContext

isReleased

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

renderResponse

public void renderResponse()
Specified by:
renderResponse in class javax.faces.context.FacesContext

isPostback

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

responseComplete

public void responseComplete()
Specified by:
responseComplete in class javax.faces.context.FacesContext

validationFailed

public void validationFailed()
Overrides:
validationFailed 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 arg0)
Overrides:
setCurrentPhaseId in class javax.faces.context.FacesContext

setProcessingEvents

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

isProcessingEvents

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

isProjectStage

public boolean isProjectStage(javax.faces.application.ProjectStage arg0)
Overrides:
isProjectStage in class javax.faces.context.FacesContext

release

public void release()
Specified by:
release in class javax.faces.context.FacesContext

setCurrentInstance

public static void setCurrentInstance(javax.faces.context.FacesContext context)

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.