O'Reilly logo

Spring Web Flow 2 Web Development by Sven Luppken, Markus Stauble

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 6. Testing Spring Web Flow Applications

Testing is an important aspect in every software development process. Applications written with Spring Web Flow are no exception. Luckily, the authors of Spring Web Flow thought the same way and included comprehensive support for unit testing.

How to test a Spring Web Flow application

Testing your flows requires the JUnit library, version 3.8.x or higher. In the current version of Spring Web Flow (2.0.5), there is no support for testing your flows with TestNG instead of JUnit (see http://forum.springframework.org/showthread.php?t=54914).

You can download JUnit at www.junit.org or use the Maven build tool to download the library automatically. Just add the following tags to your pom.xml:

<dependency> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required