|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.seam.mock.AbstractSeamTest.NonFacesRequest
public class AbstractSeamTest.NonFacesRequest
Constructor Summary | |
---|---|
AbstractSeamTest.NonFacesRequest()
|
|
AbstractSeamTest.NonFacesRequest(String viewId)
|
|
AbstractSeamTest.NonFacesRequest(String viewId,
String conversationId)
|
Method Summary | |
---|---|
protected void |
afterRequest()
Make some assertions, after the end of the request. |
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 String |
getConversationId()
|
List<javax.servlet.http.Cookie> |
getCookies()
|
protected javax.faces.context.FacesContext |
getFacesContext()
|
protected Map<String,String[]> |
getHeaders()
|
protected String |
getInvokeApplicationOutcome()
Get the outcome of the INVOKE_APPLICATION phase |
protected String |
getOutcome()
The outcome of the INVOKE_APPLICATION phase |
protected Map<String,String[]> |
getParameters()
|
String |
getPrincipalName()
Override to define the name of the current principal |
Set<String> |
getPrincipalRoles()
Override to define the roles assigned to the current principal |
protected javax.mail.internet.MimeMessage |
getRenderedMailMessage(String viewId)
|
protected String |
getRenderedViewId()
Get the view id to be rendered |
protected Object |
getValue(String valueExpression)
Evaluate (get) a value binding |
protected 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 Object |
invokeAction(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 Object |
invokeMethod(String methodExpression)
Call a method binding |
protected boolean |
isGetRequest()
Is this a non-faces request? |
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(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. |
String |
run()
|
protected void |
setOutcome(String outcome)
Set the outcome of the INVOKE_APPLICATION phase |
protected void |
setPageParameter(String name,
Object value)
|
protected void |
setParameter(String name,
String value)
|
protected void |
setValue(String valueExpression,
Object value)
Set a value binding |
protected void |
setViewId(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(String valueExpression,
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.NonFacesRequest()
public AbstractSeamTest.NonFacesRequest(String viewId)
viewId
- the view id to be renderedpublic AbstractSeamTest.NonFacesRequest(String viewId, String conversationId)
viewId
- the view id to be renderedconversationId
- the conversation idMethod Detail |
---|
protected final boolean isGetRequest()
protected final void applyRequestValues() throws Exception
Exception
protected final void processValidations() throws Exception
Exception
protected final void updateModelValues() throws Exception
Exception
protected final void invokeApplication() throws Exception
Exception
protected void setPageParameter(String name, Object value)
protected void setParameter(String name, String value)
protected Map<String,String[]> getParameters()
protected Map<String,String[]> getHeaders()
public String getPrincipalName()
public Set<String> getPrincipalRoles()
public List<javax.servlet.http.Cookie> getCookies()
protected String getViewId()
protected void setViewId(String viewId)
protected void setOutcome(String outcome)
protected String getOutcome()
protected String getInvokeApplicationOutcome()
protected void renderResponse() throws Exception
Exception
protected void afterRequest()
protected void beforeRequest()
protected String getRenderedViewId()
protected boolean isValidationFailure()
protected javax.faces.context.FacesContext getFacesContext()
protected String getConversationId()
protected Object getValue(String valueExpression)
protected void setValue(String valueExpression, Object value)
protected boolean validateValue(String valueExpression, Object value)
protected void onException(Exception e)
protected Object invokeMethod(String methodExpression)
protected Object invokeAction(String actionMethodExpression)
public String run() throws Exception
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(String viewId)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |