public class MockMyFacesClient extends Object
Constructor and Description |
---|
MockMyFacesClient(FacesContext facesContext,
AbstractMyFacesRequestTestCase testCase) |
Modifier and Type | Method and Description |
---|---|
void |
ajax(UIComponent source,
String event,
String execute,
String render,
boolean submit) |
void |
apply(org.apache.myfaces.test.mock.MockHttpServletRequest request)
Apply all params, headers and cookies into the request.
|
Map<String,javax.servlet.http.Cookie> |
getCookies() |
Map<String,Object> |
getHeaders() |
Map<String,String> |
getParameters() |
AbstractMyFacesRequestTestCase |
getTestCase() |
void |
inputText(UIInput input,
String text) |
void |
internalAjax(UIComponent source,
String event,
String execute,
String render,
boolean submit) |
protected void |
internalSubmit(UICommand command) |
void |
setTestCase(AbstractMyFacesRequestTestCase testCase) |
void |
submit(UIComponent component) |
public MockMyFacesClient(FacesContext facesContext, AbstractMyFacesRequestTestCase testCase)
public void submit(UIComponent component) throws Exception
Exception
protected void internalSubmit(UICommand command)
public void ajax(UIComponent source, String event, String execute, String render, boolean submit) throws Exception
Exception
public void internalAjax(UIComponent source, String event, String execute, String render, boolean submit)
public void apply(org.apache.myfaces.test.mock.MockHttpServletRequest request)
request
- public AbstractMyFacesRequestTestCase getTestCase()
public void setTestCase(AbstractMyFacesRequestTestCase testCase)
Copyright © 2016 The Apache Software Foundation. All Rights Reserved.