public class MockFacesEnvironment extends Object
Creates and holds the structure of mocks for mocked JSF environment.
When constructed, new mocked FacesContext is created and set to current context.
| Constructor and Description |
|---|
MockFacesEnvironment()
Instantiates a new mock faces environment and setup new mocked
FacesContext. |
| Modifier and Type | Method and Description |
|---|---|
javax.faces.application.Application |
getApplication()
Gets the application.
|
javax.faces.application.ApplicationFactory |
getApplicationFactory()
Gets the application factory.
|
javax.el.ELContext |
getElContext()
Gets the el context.
|
javax.faces.context.ExceptionHandlerFactory |
getExceptionHandlerFactory()
Gets the exception handler factory.
|
javax.faces.context.ExternalContext |
getExternalContext()
Gets the external context.
|
javax.faces.context.ExternalContextFactory |
getExternalContextFactory()
Gets the external context factory.
|
javax.faces.context.FacesContext |
getFacesContext()
Gets the faces context.
|
javax.faces.context.FacesContextFactory |
getFacesContextFactory()
Gets the faces context factory.
|
javax.faces.lifecycle.LifecycleFactory |
getLifecycleFactory()
Gets the lifecycle factory.
|
javax.faces.context.PartialViewContextFactory |
getPartialViewContextFactory()
Gets the partial view context factory.
|
javax.faces.render.RenderKit |
getRenderKit()
Gets the render kit.
|
javax.faces.render.RenderKitFactory |
getRenderKitFactory()
Gets the render kit factory.
|
javax.servlet.http.HttpServletRequest |
getRequest()
Gets the request.
|
javax.servlet.http.HttpServletResponse |
getResponse()
Gets the response.
|
javax.faces.render.ResponseStateManager |
getResponseStateManager()
Gets the response state manager.
|
RecordingResponseWriter |
getResponseWriter()
Gets the response writer.
|
javax.servlet.ServletContext |
getServletContext()
Gets the servlet context.
|
javax.faces.view.facelets.TagHandlerDelegateFactory |
getTagHandlerDelegateFactory()
Gets the tag handler delegate factory.
|
javax.faces.application.ViewHandler |
getViewHandler()
Gets the view handler.
|
void |
release()
Release.
|
MockFacesEnvironment |
reset()
Reset.
|
MockFacesEnvironment |
withApplication()
With application.
|
MockFacesEnvironment |
withELContext()
With el context.
|
MockFacesEnvironment |
withExternalContext()
With external context.
|
MockFacesEnvironment |
withFactories()
With factories.
|
MockFacesEnvironment |
withRenderKit()
With render kit.
|
MockFacesEnvironment |
withResponseWriter()
With response writer.
|
MockFacesEnvironment |
withServletRequest()
With servlet request.
|
public MockFacesEnvironment()
FacesContext.public MockFacesEnvironment withExternalContext()
public MockFacesEnvironment withELContext()
public MockFacesEnvironment withServletRequest()
public MockFacesEnvironment withFactories()
public MockFacesEnvironment withApplication()
public MockFacesEnvironment withRenderKit()
public MockFacesEnvironment withResponseWriter()
public MockFacesEnvironment reset()
public void release()
public javax.faces.context.FacesContext getFacesContext()
public javax.faces.context.ExternalContext getExternalContext()
public javax.el.ELContext getElContext()
public javax.servlet.ServletContext getServletContext()
public javax.servlet.http.HttpServletRequest getRequest()
public javax.servlet.http.HttpServletResponse getResponse()
public javax.faces.application.Application getApplication()
public javax.faces.application.ViewHandler getViewHandler()
public javax.faces.render.RenderKit getRenderKit()
public javax.faces.render.ResponseStateManager getResponseStateManager()
public RecordingResponseWriter getResponseWriter()
public javax.faces.application.ApplicationFactory getApplicationFactory()
public javax.faces.context.FacesContextFactory getFacesContextFactory()
public javax.faces.render.RenderKitFactory getRenderKitFactory()
public javax.faces.lifecycle.LifecycleFactory getLifecycleFactory()
public javax.faces.view.facelets.TagHandlerDelegateFactory getTagHandlerDelegateFactory()
public javax.faces.context.ExceptionHandlerFactory getExceptionHandlerFactory()
public javax.faces.context.PartialViewContextFactory getPartialViewContextFactory()
public javax.faces.context.ExternalContextFactory getExternalContextFactory()
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.