org.apache.myfaces.test.mock
Class MockFacesContext12

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
Direct Known Subclasses:
MockFacesContext20

public class MockFacesContext12
extends MockFacesContext

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

$Id: MockFacesContext12.java 1604204 2014-06-20 16:20:34Z lu4242 $

Since:
1.0.0

Field Summary
 
Fields inherited from class org.apache.myfaces.test.mock.MockFacesContext
messages
 
Constructor Summary
MockFacesContext12()
           
MockFacesContext12(javax.faces.context.ExternalContext externalContext)
           
MockFacesContext12(javax.faces.context.ExternalContext externalContext, javax.faces.lifecycle.Lifecycle lifecycle)
           
 
Method Summary
 javax.el.ELContext getELContext()
          
 void release()
          
 void setELContext(javax.el.ELContext elContext)
          Set the ELContext instance for this instance.
 
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
getAttributes, getCurrentInstance, getCurrentPhaseId, getExceptionHandler, getMessageList, getMessageList, getPartialViewContext, isPostback, isProcessingEvents, isProjectStage, isValidationFailed, setCurrentPhaseId, setExceptionHandler, setProcessingEvents, validationFailed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockFacesContext12

public MockFacesContext12()

MockFacesContext12

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

MockFacesContext12

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

setELContext

public void setELContext(javax.el.ELContext elContext)

Set the ELContext instance for this instance.

Parameters:
elContext - The new ELContext

getELContext

public javax.el.ELContext getELContext()

Overrides:
getELContext in class javax.faces.context.FacesContext

release

public void release()

Overrides:
release in class MockFacesContext


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