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

    Modifier and Type
    Method
    Description
    static jakarta.faces.context.FacesContext
     

    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • mockFacesContext

      public static jakarta.faces.context.FacesContext mockFacesContext()