|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.seam.mock.SeamTest.Script
public abstract class SeamTest.Script
Script is an abstract superclass for usually anonymous inner classes that test JSF interactions.
Constructor Summary | |
---|---|
protected |
SeamTest.Script()
A script for a JSF interaction with no existing long-running conversation. |
protected |
SeamTest.Script(String id)
A script for a JSF interaction in the scope of an existing long-running conversation. |
Method Summary | |
---|---|
protected void |
applyRequestValues()
Override to implement the interactions between the JSF page and your components that occurs during the apply request values phase. |
Map<String,String[]> |
getHeaders()
|
protected Object |
getInstance(Class clazz)
Helper method for resolving components in the test script. |
protected Object |
getInstance(String name)
Helper method for resolving components in the test script. |
protected String |
getInvokeApplicationOutcome()
|
Map<String,String[]> |
getParameters()
|
protected String |
getViewId()
|
protected void |
invokeApplication()
Override to implement the interactions between the JSF page and your components that occurs during the invoke application phase. |
protected boolean |
isGetRequest()
|
boolean |
isValidationFailure()
|
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)
|
protected void |
setup()
Override to set up any request parameters for the request. |
protected boolean |
skipToRender()
|
protected void |
updateModelValues()
Override to implement the interactions between the JSF page and your components that occurs during the update model values phase. |
protected void |
validate(Class modelClass,
String property,
Object value)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected SeamTest.Script()
protected SeamTest.Script(String id)
Method Detail |
---|
protected boolean isGetRequest()
protected String getViewId()
protected Object getInstance(Class clazz)
protected Object getInstance(String name)
protected void applyRequestValues() throws Exception
Exception
protected void processValidations() throws Exception
Exception
protected void updateModelValues() throws Exception
Exception
protected void invokeApplication() throws Exception
Exception
protected void setOutcome(String outcome)
protected String getInvokeApplicationOutcome()
protected void renderResponse() throws Exception
Exception
protected void setup()
public Map<String,String[]> getParameters()
public Map<String,String[]> getHeaders()
protected void validate(Class modelClass, String property, Object value)
public boolean isValidationFailure()
public String run() throws Exception
Exception
protected boolean skipToRender()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |