public class MockMyFacesClient extends Object
Constructor and Description |
---|
MockMyFacesClient(FacesContext facesContext,
ServletMockContainer testCase) |
Modifier and Type | Method and Description |
---|---|
void |
ajax(String sourceClientId,
String event,
String execute,
String render,
boolean submit) |
void |
ajax(String sourceClientId,
String event,
String execute,
String render,
boolean submit,
boolean resetValues) |
void |
ajax(UIComponent source,
String event,
String execute,
String render,
boolean submit) |
void |
ajax(UIComponent source,
String event,
String execute,
String render,
boolean submit,
boolean resetValues) |
void |
apply(org.apache.myfaces.test.mock.MockHttpServletRequest request)
Apply all params, headers and cookies into the request.
|
protected void |
applyCookiesFromPreviousRequest() |
protected void |
applyStateFromPreviousRequest() |
Map<String,javax.servlet.http.Cookie> |
getCookies() |
Map<String,Object> |
getHeaders() |
Map<String,String> |
getParameters() |
ServletMockContainer |
getTestCase() |
void |
inputText(String clientId,
String text) |
void |
inputText(UIInput input,
String text) |
protected void |
internalAjax(String source,
String event,
String execute,
String render,
boolean submit,
boolean resetValues) |
protected void |
internalSubmit(UICommand command) |
void |
processRedirect() |
void |
reset(FacesContext facesContext) |
void |
setTestCase(AbstractMyFacesRequestTestCase testCase) |
void |
submit(String clientId) |
void |
submit(UIComponent component)
Simulate a submit, processing the remaining phases and setting up the new request.
|
public MockMyFacesClient(FacesContext facesContext, ServletMockContainer testCase)
public void processRedirect()
public void submit(UIComponent component)
component
- Exception
public void submit(String clientId)
protected void internalSubmit(UICommand command)
public void ajax(UIComponent source, String event, String execute, String render, boolean submit) throws Exception
Exception
public void ajax(String sourceClientId, String event, String execute, String render, boolean submit) throws Exception
Exception
public void ajax(UIComponent source, String event, String execute, String render, boolean submit, boolean resetValues)
public void ajax(String sourceClientId, String event, String execute, String render, boolean submit, boolean resetValues)
protected void internalAjax(String source, String event, String execute, String render, boolean submit, boolean resetValues)
protected void applyStateFromPreviousRequest()
protected void applyCookiesFromPreviousRequest()
public void apply(org.apache.myfaces.test.mock.MockHttpServletRequest request)
request
- public void reset(FacesContext facesContext)
public ServletMockContainer getTestCase()
public void setTestCase(AbstractMyFacesRequestTestCase testCase)
Copyright © 2020 The Apache Software Foundation. All rights reserved.