If you haven't set up and created your Maven-Google Web Toolkit (GWT) application, stop following this recipe and move back to the preceding recipe. Here's where we deal with setting up a Test Driven Development based workspace for our Maven-GWT projects.
As mentioned before, the preceding recipe is a prerequisite for everything we're going to explore here. Also, you need to be familiar with Test Driven Development (TDD) covered in the Test Driven Development recipe in Chapter 2, Software Engineering Techniques.
Unit testing of the GWT application would consist of unit testing of the custom libraries and custom APIs that are being used. This is the same as unit testing for any Java project using the Surefire plugin. This part has already been covered in Chapter 2, Software Engineering Techniques.
Integration testing for GWT projects is where things get interesting. The GWT-Maven plugin testing support is bound to the Maven...