Class FacesContextMocker


  • public abstract class FacesContextMocker
    extends javax.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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static javax.faces.context.FacesContext mockFacesContext()  
      • Methods inherited from class javax.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 Detail

      • mockFacesContext

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