public class AbstractJsfRequestTestContainer extends AbstractJsfTestContainer implements ServletMockContainer
AbstractJsfTestContainer.JUnitFacesInitializer, AbstractJsfTestContainer.MyFacesMockFacesConfigurationProvider, AbstractJsfTestContainer.SharedFacesConfiguration
Modifier and Type | Field and Description |
---|---|
protected Application |
application |
protected MockMyFacesClient |
client |
protected ExternalContext |
externalContext |
protected FacesContext |
facesContext |
protected org.apache.myfaces.test.mock.MockHttpSession |
lastSession |
protected org.apache.myfaces.test.mock.MockHttpServletRequest |
request |
protected boolean |
requestInitializedCalled |
protected org.apache.myfaces.test.mock.MockHttpServletResponse |
response |
protected org.apache.myfaces.test.mock.MockHttpSessionProxy |
session |
AFTER_RENDER_STEP, BEFORE_RENDER_STEP, BUILD_VIEW_CYCLE_STEP, facesConfigurationProvider, facesContextFactory, injectionProvider, LAST_PHASE_PROCESSED, LAST_RENDER_PHASE_STEP, lifecycle, lifecycleFactory, listener, PHASE_MANAGER_INSTANCE, servletConfig, servletContext, testClass, testInstance, VIEWHANDLER_RENDER_STEP, webContainer
Constructor and Description |
---|
AbstractJsfRequestTestContainer(org.junit.runners.model.TestClass testClass) |
applyRequestValues, createExpressionFactory, createFacesConfigurationProvider, createFacesInitializer, executeAfterRender, executeBeforeRender, executeBuildViewCycle, executePhase, executeViewHandlerRender, getFacesInitializer, getInjectionProvider, getRenderedContent, getServletConfig, getServletContext, getTestJavaClass, getWebappContextURI, getWebappResourcePath, invokeApplication, isScanAnnotations, processLifecycleExecute, processLifecycleRender, processRemainingExecutePhases, processRemainingPhases, processRemainingPhasesBefore, processValidations, renderResponse, restoreView, setFacesInitializer, setUpClassloader, setUpFacesServlet, setUpMyFaces, setUpServletListeners, setUpServletObjects, setUpServlets, setUpWebConfigParams, tearDownClass, tearDownClass, tearDownClassloader, tearDownFacesServlet, tearDownMyFaces, tearDownServletListeners, tearDownServlets, updateModelValues
protected MockMyFacesClient client
protected org.apache.myfaces.test.mock.MockHttpServletRequest request
protected boolean requestInitializedCalled
protected org.apache.myfaces.test.mock.MockHttpServletResponse response
protected org.apache.myfaces.test.mock.MockHttpSessionProxy session
protected org.apache.myfaces.test.mock.MockHttpSession lastSession
protected Application application
protected ExternalContext externalContext
protected FacesContext facesContext
public AbstractJsfRequestTestContainer(org.junit.runners.model.TestClass testClass)
public void setUp(Object testInstance)
AbstractJsfTestContainer
Set up instance variables required by this test case.
setUp
in class AbstractJsfTestContainer
public void tearDown()
tearDown
in class AbstractJsfTestContainer
protected void setupRequest()
protected void setupRequest(String pathInfo)
protected MockMyFacesClient createClient()
public final void startViewRequest(String viewId)
startViewRequest
in interface ServletMockContainer
public final void startRequest()
public void doRequestInitialized()
public final void endRequest()
endRequest
in interface ServletMockContainer
public void doRequestDestroyed()
protected void tearDownRequest()
protected String getContextPath()
protected String getServletPath()
public void processLifecycleExecute()
public void processLifecycleRender()
public void processLifecycleExecuteAndRender()
public void restoreView()
public void applyRequestValues()
public void processValidations()
public void updateModelValues()
public void invokeApplication()
public void renderResponse()
public void processRemainingExecutePhases()
public void processRemainingPhases()
processRemainingPhases
in interface ServletMockContainer
public void executeBeforeRender()
public void executeViewHandlerRender()
public void executeBuildViewCycle()
public void executeAfterRender()
public String getRenderedContent() throws IOException
IOException
public org.apache.myfaces.test.mock.MockHttpServletRequest getRequest()
getRequest
in interface ServletMockContainer
public org.apache.myfaces.test.mock.MockHttpServletResponse getResponse()
getResponse
in interface ServletMockContainer
public FacesContext getFacesContext()
getFacesContext
in interface ServletMockContainer
public MockMyFacesClient getClient()
public Application getApplication()
public ExternalContext getExternalContext()
Copyright © 2020 The Apache Software Foundation. All rights reserved.