O'Reilly logo

Apache Maven 2 Effective Implementation by Maria Odea Ching, Brett Porter

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

Working with tests

We have been fortunate to encounter Maven's handling of unit tests on several occasions already in this book. This should come as no surprise, because Maven so closely links this type of test to the build lifecycle of all of the default packaging types.

To revise briefly, in Chapter 1, Maven in a Nutshell, we had an overview of the Surefire plugin, how Maven picks up tests automatically, and how to treat unit test failures. We also saw how to write a basic unit test with TestNG and configure that to be used instead of JUnit. If you are interested in learning the basics of how to write your own unit tests and have them configured in the build, take a look back at this section.

In Chapter 3, Building an Application Using Maven ...

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