Package org.springframework.webflow.test
package org.springframework.webflow.test
Support for testing flows and their associated artifacts.
When you want to unit test one of your flows the
AbstractFlowExecutionTests
and its associated subclasses provide
a base you can extend.
When unit testing flow artifacts such as actions in isolation, the
MockRequestContext
is of particular interest.
All mock implementations provided by this package are NOT intended to be used for anything but standalone unit
tests. They are simple state holders, stub implementations, at least if you follow
Martin Fowler's reasoning. These classes
are called Mocks to be consistent with the naming convention in the rest of the Spring framework
(e.g. MockHttpServletRequest
, ...).
-
ClassDescriptionA simple flow execution key implementation.A trivial stub action implementation that can be parameterized to return a particular action execution result.Mock implementation of the
ExternalContext
interface.A stub flow service locator implementation suitable for a test environment.A stub implementation of the flow execution context interface.A simple flow execution key implementation.Trivial flow execution key factory implementation that returns a mock flow execution key each time.Mock implementation of theFlowSession
interface.A extension of parameter map that allows for mutation of parameters.Mock implementation of theRequestContext
interface to facilitate standalone flow artifact (e.g.Mock implementation of theRequestControlContext
interface to facilitate standalone Flow and State unit tests.Factory that encapsulates configuration of default flow builder services for a test environment.