|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.seam.mock.AbstractSeamTest.FacesRequest
public class AbstractSeamTest.FacesRequest
| Constructor Summary | |
|---|---|
AbstractSeamTest.FacesRequest()
|
|
AbstractSeamTest.FacesRequest(java.lang.String viewId)
|
|
AbstractSeamTest.FacesRequest(java.lang.String viewId,
java.lang.String conversationId)
|
|
| Method Summary | |
|---|---|
protected void |
afterRequest()
Make some assertions, after the end of the request. |
protected void |
afterRestoreViewPhase()
Override to implement any logic that requires active scopes but must happen before the rest of the JSF lifecycle. |
protected void |
applyRequestValues()
Override to implement the interactions between the JSF page and your components that occurs during the apply request values phase. |
protected void |
beforeRequest()
Do anything you like, after the start of the request. |
protected javax.servlet.http.HttpServletRequest |
createRequest()
Override if you wish to customize the HttpServletRequest used in this request. |
protected javax.servlet.http.HttpServletResponse |
createResponse()
Override if you wish to customize the HttpServletResponse used in this request. |
protected java.lang.String |
getConversationId()
|
java.util.List<javax.servlet.http.Cookie> |
getCookies()
|
protected javax.faces.context.FacesContext |
getFacesContext()
|
protected java.util.Map<java.lang.String,java.lang.String[]> |
getHeaders()
|
protected java.lang.String |
getInvokeApplicationOutcome()
Get the outcome of the INVOKE_APPLICATION phase |
protected java.lang.String |
getOutcome()
The outcome of the INVOKE_APPLICATION phase |
protected java.util.Map<java.lang.String,java.lang.String[]> |
getParameters()
|
java.lang.String |
getPrincipalName()
Override to define the name of the current principal |
java.util.Set<java.lang.String> |
getPrincipalRoles()
Override to define the roles assigned to the current principal |
protected javax.mail.internet.MimeMessage |
getRenderedMailMessage(java.lang.String viewId)
|
protected java.lang.String |
getRenderedViewId()
Get the view id to be rendered |
protected java.lang.Object |
getValue(java.lang.String valueExpression)
Evaluate (get) a value binding |
protected java.lang.String |
getViewId()
The JSF view id of the form that is being submitted or of the page that is being rendered in a non-faces request. |
protected void |
init()
|
protected java.lang.Object |
invokeAction(java.lang.String actionMethodExpression)
Simulate an action method |
protected void |
invokeApplication()
Override to implement the interactions between the JSF page and your components that occurs during the invoke application phase. |
protected java.lang.Object |
invokeMethod(java.lang.String methodExpression)
Call a method binding |
protected boolean |
isGetRequest()
Is this a non-faces request? Override if it is. |
protected boolean |
isInvokeApplicationBegun()
|
protected boolean |
isInvokeApplicationComplete()
|
protected boolean |
isRenderResponseBegun()
|
protected boolean |
isRenderResponseComplete()
|
protected boolean |
isValidationFailure()
Did a validation failure occur during a call to validate()? |
protected void |
onException(java.lang.Exception e)
|
protected void |
processValidations()
Override to implement the interactions between the JSF page and your components that occurs during the process validations phase. |
protected void |
renderResponse()
Override to implement the interactions between the JSF page and your components that occurs during the render response phase. |
java.lang.String |
run()
|
protected void |
setOutcome(java.lang.String outcome)
Set the outcome of the INVOKE_APPLICATION phase |
protected void |
setPageParameter(java.lang.String name,
java.lang.Object value)
|
protected void |
setParameter(java.lang.String name,
java.lang.String value)
|
protected void |
setValue(java.lang.String valueExpression,
java.lang.Object value)
Set a value binding |
protected void |
setViewId(java.lang.String viewId)
|
protected void |
updateModelValues()
Override to implement the interactions between the JSF page and your components that occurs during the update model values phase. |
protected boolean |
validateValue(java.lang.String valueExpression,
java.lang.Object value)
Validate the value against model-based constraints return true if the value is valid |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractSeamTest.FacesRequest()
public AbstractSeamTest.FacesRequest(java.lang.String viewId)
viewId - the view id of the form that was submitted
public AbstractSeamTest.FacesRequest(java.lang.String viewId,
java.lang.String conversationId)
viewId - the view id of the form that was submittedconversationId - the conversation id| Method Detail |
|---|
protected final boolean isGetRequest()
protected void setPageParameter(java.lang.String name,
java.lang.Object value)
protected void setParameter(java.lang.String name,
java.lang.String value)
protected java.util.Map<java.lang.String,java.lang.String[]> getParameters()
protected java.util.Map<java.lang.String,java.lang.String[]> getHeaders()
public java.lang.String getPrincipalName()
public java.util.Set<java.lang.String> getPrincipalRoles()
public java.util.List<javax.servlet.http.Cookie> getCookies()
protected java.lang.String getViewId()
protected void setViewId(java.lang.String viewId)
protected void afterRestoreViewPhase()
throws java.lang.Exception
java.lang.Exception
protected void applyRequestValues()
throws java.lang.Exception
java.lang.Exception
protected void processValidations()
throws java.lang.Exception
java.lang.Exception
protected void updateModelValues()
throws java.lang.Exception
java.lang.Exception
protected void invokeApplication()
throws java.lang.Exception
java.lang.Exceptionprotected void setOutcome(java.lang.String outcome)
protected java.lang.String getOutcome()
protected java.lang.String getInvokeApplicationOutcome()
protected void renderResponse()
throws java.lang.Exception
java.lang.Exceptionprotected void afterRequest()
protected void beforeRequest()
protected java.lang.String getRenderedViewId()
protected boolean isValidationFailure()
protected javax.faces.context.FacesContext getFacesContext()
protected java.lang.String getConversationId()
protected java.lang.Object getValue(java.lang.String valueExpression)
protected void setValue(java.lang.String valueExpression,
java.lang.Object value)
protected boolean validateValue(java.lang.String valueExpression,
java.lang.Object value)
protected void onException(java.lang.Exception e)
protected java.lang.Object invokeMethod(java.lang.String methodExpression)
protected java.lang.Object invokeAction(java.lang.String actionMethodExpression)
public java.lang.String run()
throws java.lang.Exception
java.lang.Exception - to fail the testprotected void init()
protected javax.servlet.http.HttpServletRequest createRequest()
HttpServletRequestWrapper useful.
protected javax.servlet.http.HttpServletResponse createResponse()
HttpServletResponseWrapper useful.
protected boolean isInvokeApplicationBegun()
protected boolean isInvokeApplicationComplete()
protected boolean isRenderResponseBegun()
protected boolean isRenderResponseComplete()
protected javax.mail.internet.MimeMessage getRenderedMailMessage(java.lang.String viewId)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||