Package org.joinfaces.test.mock
Class FacesContextMocker
java.lang.Object
jakarta.faces.context.FacesContext
org.joinfaces.test.mock.FacesContextMocker
public abstract class FacesContextMocker
extends jakarta.faces.context.FacesContext
Faces Context Mocker.
Taken from
https://ovaraksin.blogspot.com.br/2014/03/set-up-jsf-environment-for-junit-tests.html
-
Method Summary
Methods inherited from class jakarta.faces.context.FacesContext
addMessage, getApplication, getAttributes, getClientIdsWithMessages, getCurrentInstance, getCurrentPhaseId, getELContext, getExceptionHandler, getExternalContext, getMaximumSeverity, getMessageList, getMessageList, getMessages, getMessages, getNamingContainerSeparatorChar, getPartialViewContext, getRenderKit, getRenderResponse, getResourceLibraryContracts, getResponseComplete, getResponseStream, getResponseWriter, getViewRoot, isPostback, isProcessingEvents, isProjectStage, isReleased, isValidationFailed, release, renderResponse, responseComplete, setCurrentInstance, setCurrentPhaseId, setExceptionHandler, setProcessingEvents, setResourceLibraryContracts, setResponseStream, setResponseWriter, setViewRoot, validationFailed
-
Method Details
-
mockFacesContext
public static jakarta.faces.context.FacesContext mockFacesContext()
-