public class AcidMyFacesRequestTestCase extends AbstractMyFacesRequestTestCase
AbstractMyFacesTestCase.MyFacesMockFacesConfigurationProvider
application, client, externalContext, facesContext, request, response, session
AFTER_RENDER_STEP, BEFORE_RENDER_STEP, BUILD_VIEW_CYCLE_STEP, facesConfigurationProvider, facesContextFactory, LAST_PHASE_PROCESSED, LAST_RENDER_PHASE_STEP, lifecycle, lifecycleFactory, listener, PHASE_MANAGER_INSTANCE, servletConfig, servletContext, VIEWHANDLER_RENDER_STEP
Constructor and Description |
---|
AcidMyFacesRequestTestCase() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
isScanAnnotations()
Indicate if annotation scanning should be done over the classpath.
|
protected void |
setUpWebConfigParams()
Setup web config params.
|
void |
testComponentBinding()
Check if a dynamic subtree can be created from a binding property, and if it
will be preserved across request.
|
void |
testInclude() |
void |
testInclude2()
Same as testInclude, but only check the component is restored correctly.
|
void |
testIndex() |
void |
testInput() |
void |
testRecursive() |
void |
testResourceDependency() |
void |
testResourceDependency2() |
void |
testStable() |
void |
testTable() |
void |
testToggle() |
createClient, getContextPath, getRenderedContent, getServletPath, inputText, processApplyRequestValuesPhase, processInvokeApplicationPhase, processLifecycleExecute, processLifecycleExecuteAndRender, processRemainingExecutePhases, processRemainingPhases, processRender, processRestoreViewPhase, processUpdateModelPhase, processValidationsPhase, setUp, setupRequest, setupRequest, setupRequest, submit, tearDown, tearDownRequest
createExpressionFactory, createFacesConfigurationProvider, executeAfterRender, executeBeforeRender, executeBuildViewCycle, executePhase, executeViewHandlerRender, getRenderedContent, getWebappContextFilePath, getWebappContextURI, processApplyRequestValuesPhase, processInvokeApplicationPhase, processLifecycleExecute, processRemainingExecutePhases, processRemainingPhases, processRender, processRestoreViewPhase, processUpdateModelPhase, processValidationsPhase, setUpFacesServlet, setUpMyFaces, setUpServletListeners, setUpServletObjects, setUpServlets, tearDownFacesServlet, tearDownMyFaces, tearDownServletListeners, tearDownServlets
protected boolean isScanAnnotations()
AbstractMyFacesTestCase
isScanAnnotations
in class AbstractMyFacesTestCase
protected void setUpWebConfigParams() throws Exception
AbstractMyFacesTestCase
Setup web config params. By default it sets the following params
setUpWebConfigParams
in class AbstractMyFacesTestCase
Exception
public void testInclude2() throws Exception
Exception
public void testComponentBinding() throws Exception
<h:panelGroup id="panel" binding="#{componentBindingBean.panel}">
The solution is if a binding returns a component that has children or facets
attached, it is not elegible for PSS algorithm because the additional components
are created outside facelets control, and there is no warrant that the same structure
will be generated across requests, violating PSS base principle (it is possible to
restore to the initial state calling vdl.buildView).
This test is here because all state saving modes should support this method.Exception
Copyright © 2016 The Apache Software Foundation. All Rights Reserved.