Expert Spring MVC and Web Flow
Unit Test Summary Unit tests are meant to be created quickly and run quickly, providing you with a safety net for eventual refac ...
allowed to bend the rules mentioned above, while keeping with the main themes of quickness, repeatability, and isolation. Bend, ...
This is why we must write integration tests, because there are neither any compiler checks for the system’s configuration (short ...
Example As always, code examples speak louder than words, so let’s create an example of a transactional integration test. We wil ...
It’s very important that whenever you use the AbstractTransactionalStringContextTests class that a PlatformTransactionManagercan ...
Create and Use a Special ApplicationContext for Tests Only? A common question regarding Spring’s integration test support classe ...
The AbstractTransactionalSpringContextTestsextends the Dependency Injection test by managing a transaction for each test method. ...
Introduction to Spring Web Flow This chapter will provide a high-level introduction to Spring Web Flow, a framework for man- agi ...
For many problems these existing scopes are sufficient. A page can access the request scope for data specific to a single reques ...
This means for any nontrivial web application, request scope is too fine grained and ses- sion scope is not fine grained enough. ...
with the user. Conversations can execute in parallel without intruding on each other, and when the conversation has finished, al ...
■NoteThe actual flow displayed here is a slight variation on the use case we will be implementing later in this chapter. Because ...
Not a Golden Hammer Although Spring Web Flow is very powerful, flexible, and well architected, it is a solution to a spe- cific ...
Architectural Overview As Figure 11-3 illustrates, Spring Web Flow integrates with Spring MVC, Spring Portlet MVC, Struts, and J ...
Different Scopes As previously discussed, information (or context) created during a user’s interaction with the server is stored ...
Figure 11-4.Purchase Product use case The preceding flow is very simple, consisting of two steps the user must complete. These i ...
■NoteA flow that is called from another flow is referred to as a subflow.See Chapter 12 for more details. Before walking through ...
So with knowledge of these basic building blocks in place, the challenge of implementing a flow definition becomes: 1.defining t ...
The Purchase Product Flow Definition A flow definition can be engineered in a number of ways. Many users use XML to define their ...
Listing 11-2./WEB-INF/flows/purchase-flow.xmlContaining Transitions The preceding transition instructions can be read, “On ...
«
12
13
14
15
16
17
18
19
20
21
»
Free download pdf