9 In-container testing
This chapter covers
- Analyzing the limitations of mock objects
- Using in-container testing
- Evaluating and comparing stubs, mock objects, and in-container testing
- Working with Arquillian
The secret of success is sincerity. Once you can fake that you’ve got it made.
--Jean Giraudoux
This chapter examines one approach to unit testing components in an application container: in-container unit testing, or integration testing. These components are modules that may be developed by different programmers or teams and that need to be tested together or integrated. We will analyze in-container testing pros and cons and show what you can achieve by using the mock-objects approach introduced in chapter 8, where mock objects fall short, ...
Get JUnit in Action, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.