Book Image

Apache Maven 3 Cookbook

By : Srirangan
Book Image

Apache Maven 3 Cookbook

By: Srirangan

Overview of this book

<p>Apache Maven is more than just build automation. When positioned at the very heart of your development strategy, Apache Maven can become a force multiplier not just for individual developers but for agile teams and managers. This book covers implementation of Apache Maven with popular enterprise technologies/frameworks and introduces agile collaboration techniques and software engineering best practices integrated with Apache Maven.</p> <p>The Apache 3 Maven Cookbook is a real-world collection of step-by-step solutions for individual programmers, teams, and managers to explore and implement Apache Maven and the engineering benefits it brings into their development processes.</p> <p>This book helps with the basics of Apache Maven and with using it to implement software engineering best practices and agile team collaboration techniques. It covers a broad range of emergent and enterprise technologies in the context of Apache Maven, and concludes with recipes on extending Apache Maven with custom plugins.</p> <p>We look at specific technology implementations through Apache Maven including Java Web Applications, Enterprise Java Frameworks, Cloud Computing, Mobile / Device development, and more. We also look at Maven integration with popular IDEs including Eclipse, NetBeans, and IntelliJIDEA.</p> <p>The book is rounded off by exploring extending the Apache Maven platform by building custom plugins, integrating them with existing projects, and executing them through explicit command-line calls or with Maven Build Phases.</p>
Table of Contents (16 chapters)
Apache Maven 3 Cookbook
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Testing and debugging a Google Web Toolkit application


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.

Getting ready

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...