站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss Seam 1.0.1 API 英文版文档

SeamTest.Script (JBoss Seam API Documentation) - JBoss Seam 1.0.1 API 英文版文档


org.jboss.seam.mock
Class SeamTest.Script

java.lang.Object
  extended by org.jboss.seam.mock.SeamTest.Script
Enclosing class:
SeamTest

public abstract class SeamTest.Script
extends Object

Script is an abstract superclass for usually anonymous inner classes that test JSF interactions.

Author:
Gavin King

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  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

SeamTest.Script

protected SeamTest.Script()
A script for a JSF interaction with no existing long-running conversation.


SeamTest.Script

protected SeamTest.Script(String id)
A script for a JSF interaction in the scope of an existing long-running conversation.

Method Detail

isGetRequest

protected boolean isGetRequest()

getViewId

protected String getViewId()

getInstance

protected Object getInstance(Class clazz)
Helper method for resolving components in the test script.


getInstance

protected Object getInstance(String name)
Helper method for resolving components in the test script.


applyRequestValues

protected void applyRequestValues()
                           throws Exception
Override to implement the interactions between the JSF page and your components that occurs during the apply request values phase.

Throws:
Exception

processValidations

protected void processValidations()
                           throws Exception
Override to implement the interactions between the JSF page and your components that occurs during the process validations phase.

Throws:
Exception

updateModelValues

protected void updateModelValues()
                          throws Exception
Override to implement the interactions between the JSF page and your components that occurs during the update model values phase.

Throws:
Exception

invokeApplication

protected void invokeApplication()
                          throws Exception
Override to implement the interactions between the JSF page and your components that occurs during the invoke application phase.

Throws:
Exception

setOutcome

protected void setOutcome(String outcome)

getInvokeApplicationOutcome

protected String getInvokeApplicationOutcome()

renderResponse

protected void renderResponse()
                       throws Exception
Override to implement the interactions between the JSF page and your components that occurs during the render response phase.

Throws:
Exception

setup

protected void setup()
Override to set up any request parameters for the request.


getParameters

public Map<String,String[]> getParameters()

getHeaders

public Map<String,String[]> getHeaders()

validate

protected void validate(Class modelClass,
                        String property,
                        Object value)

isValidationFailure

public boolean isValidationFailure()

run

public String run()
           throws Exception
Throws:
Exception