Java Doc for AbstractXmlFlowExecutionTests.java in  » Workflow-Engines » spring-webflow-1.0.4 » org » springframework » webflow » test » execution » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Workflow Engines » spring webflow 1.0.4 » org.springframework.webflow.test.execution 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.springframework.webflow.test.execution.AbstractFlowExecutionTests
   org.springframework.webflow.test.execution.AbstractExternalizedFlowExecutionTests
      org.springframework.webflow.test.execution.AbstractXmlFlowExecutionTests

AbstractXmlFlowExecutionTests
abstract public class AbstractXmlFlowExecutionTests extends AbstractExternalizedFlowExecutionTests (Code)
Base class for flow integration tests that verify an XML flow definition executes as expected.

Example usage:

 public class SearchFlowExecutionTests extends AbstractXmlFlowExecutionTests {
 protected FlowDefinitionResource getFlowDefinitionResource() {
 return createFlowDefinitionResource("src/main/webapp/WEB-INF/flows/search-flow.xml");
 }
 public void testStartFlow() {
 startFlow();
 assertCurrentStateEquals("displaySearchCriteria");
 }
 public void testDisplayCriteriaSubmitSuccess() {
 startFlow();
 MockParameterMap parameters = new MockParameterMap();
 parameters.put("firstName", "Keith");
 parameters.put("lastName", "Donald");
 ViewSelection view = signalEvent("search", parameters);
 assertCurrentStateEquals("displaySearchResults");
 assertModelAttributeCollectionSize(1, "results", view);
 }
 }
 

author:
   Keith Donald
author:
   Erwin Vervaet



Constructor Summary
public  AbstractXmlFlowExecutionTests()
     Constructs a default XML flow execution test.
public  AbstractXmlFlowExecutionTests(String name)
     Constructs an XML flow execution test with given name.

Method Summary
protected  FlowBuildercreateFlowBuilder(Resource resource, FlowServiceLocator flowServiceLocator)
    
protected  voidregisterLocalMockServices(Flow flow, ConfigurableBeanFactory beanFactory)
     Template method subclasses may override to register mock implementations of services used locally by the flow being tested.


Constructor Detail
AbstractXmlFlowExecutionTests
public AbstractXmlFlowExecutionTests()(Code)
Constructs a default XML flow execution test.
See Also:   AbstractXmlFlowExecutionTests.setName(String)



AbstractXmlFlowExecutionTests
public AbstractXmlFlowExecutionTests(String name)(Code)
Constructs an XML flow execution test with given name.
Parameters:
  name - the name of the test
since:
   1.0.2




Method Detail
createFlowBuilder
protected FlowBuilder createFlowBuilder(Resource resource, FlowServiceLocator flowServiceLocator)(Code)



registerLocalMockServices
protected void registerLocalMockServices(Flow flow, ConfigurableBeanFactory beanFactory)(Code)
Template method subclasses may override to register mock implementations of services used locally by the flow being tested.
Parameters:
  flow - the flow to register the services for
Parameters:
  beanFactory - the local flow service registry; register mock services with itusing ConfigurableBeanFactory.registerSingleton(StringObject)
since:
   1.0.4



Methods inherited from org.springframework.webflow.test.execution.AbstractExternalizedFlowExecutionTests
final protected Flow createFlow(FlowDefinitionResource resource, FlowServiceLocator serviceLocator)(Code)(Java Doc)
abstract protected FlowBuilder createFlowBuilder(Resource resource, FlowServiceLocator serviceLocator)(Code)(Java Doc)
final protected FlowDefinitionResource createFlowDefinitionResource(String filePath)(Code)(Java Doc)
final protected FlowDefinitionResource createFlowDefinitionResource(String fileDirectory, String fileName)(Code)(Java Doc)
protected FlowDefinitionResource createFlowDefinitionResource(File file)(Code)(Java Doc)
protected FlowServiceLocator createFlowServiceLocator()(Code)(Java Doc)
final protected FlowDefinition getFlowDefinition()(Code)(Java Doc)
abstract protected FlowDefinitionResource getFlowDefinitionResource()(Code)(Java Doc)
protected boolean isCacheFlowDefinition()(Code)(Java Doc)
protected void registerMockServices(MockFlowServiceLocator serviceRegistry)(Code)(Java Doc)
protected void setCacheFlowDefinition(boolean cacheFlowDefinition)(Code)(Java Doc)
protected void setFlowExecutionAttributes(AttributeMap executionAttributes)(Code)(Java Doc)
protected void setFlowExecutionListener(FlowExecutionListener executionListener)(Code)(Java Doc)
protected void setFlowExecutionListeners(FlowExecutionListener[] executionListeners)(Code)(Java Doc)

Methods inherited from org.springframework.webflow.test.execution.AbstractFlowExecutionTests
protected ApplicationView applicationView(ViewSelection viewSelection)(Code)(Java Doc)
protected void assertActiveFlowEquals(String expectedActiveFlowId)(Code)(Java Doc)
protected void assertCurrentStateEquals(String expectedCurrentStateId)(Code)(Java Doc)
protected void assertFlowExecutionActive()(Code)(Java Doc)
protected void assertFlowExecutionEnded()(Code)(Java Doc)
protected void assertModelAttributeCollectionSize(int expectedSize, String attributeName, ApplicationView viewSelection)(Code)(Java Doc)
protected void assertModelAttributeEquals(Object expectedValue, String attributeName, ApplicationView viewSelection)(Code)(Java Doc)
protected void assertModelAttributeNotNull(String attributeName, ApplicationView viewSelection)(Code)(Java Doc)
protected void assertModelAttributeNull(String attributeName, ApplicationView viewSelection)(Code)(Java Doc)
protected void assertViewNameEquals(String expectedViewName, ApplicationView viewSelection)(Code)(Java Doc)
protected ExternalContext createExternalContext(ParameterMap requestParameters)(Code)(Java Doc)
protected FlowExecutionFactory createFlowExecutionFactory()(Code)(Java Doc)
protected Object evaluateModelAttributeExpression(String attributeName, Map model)(Code)(Java Doc)
protected ExternalRedirect externalRedirect(ViewSelection viewSelection)(Code)(Java Doc)
protected FlowDefinitionRedirect flowDefinitionRedirect(ViewSelection viewSelection)(Code)(Java Doc)
protected FlowExecutionRedirect flowExecutionRedirect(ViewSelection viewSelection)(Code)(Java Doc)
protected Object getConversationAttribute(String attributeName)(Code)(Java Doc)
protected Object getFlashAttribute(String attributeName)(Code)(Java Doc)
protected Object getFlowAttribute(String attributeName)(Code)(Java Doc)
abstract protected FlowDefinition getFlowDefinition()(Code)(Java Doc)
protected FlowExecution getFlowExecution() throws IllegalStateException(Code)(Java Doc)
protected FlowExecutionFactory getFlowExecutionFactory()(Code)(Java Doc)
protected Object getRequiredConversationAttribute(String attributeName) throws IllegalStateException(Code)(Java Doc)
protected Object getRequiredConversationAttribute(String attributeName, Class requiredType) throws IllegalStateException(Code)(Java Doc)
protected Object getRequiredFlashAttribute(String attributeName) throws IllegalStateException(Code)(Java Doc)
protected Object getRequiredFlashAttribute(String attributeName, Class requiredType) throws IllegalStateException(Code)(Java Doc)
protected Object getRequiredFlowAttribute(String attributeName) throws IllegalStateException(Code)(Java Doc)
protected Object getRequiredFlowAttribute(String attributeName, Class requiredType) throws IllegalStateException(Code)(Java Doc)
protected void nullView(ViewSelection viewSelection)(Code)(Java Doc)
protected ViewSelection refresh() throws FlowExecutionException(Code)(Java Doc)
protected ViewSelection refresh(ExternalContext context) throws FlowExecutionException(Code)(Java Doc)
public void setExpressionParser(ExpressionParser expressionParser)(Code)(Java Doc)
protected ViewSelection signalEvent(String eventId) throws FlowExecutionException(Code)(Java Doc)
protected ViewSelection signalEvent(String eventId, ParameterMap requestParameters) throws FlowExecutionException(Code)(Java Doc)
protected ViewSelection signalEvent(String eventId, ExternalContext context) throws FlowExecutionException(Code)(Java Doc)
protected ViewSelection startFlow() throws FlowExecutionException(Code)(Java Doc)
protected ViewSelection startFlow(MutableAttributeMap input) throws FlowExecutionException(Code)(Java Doc)
protected ViewSelection startFlow(MutableAttributeMap input, ExternalContext context) throws FlowExecutionException(Code)(Java Doc)
protected void updateFlowExecution(FlowExecution flowExecution)(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.