Part 2. Different testing strategies
This part of the book reveals the various strategies and techniques used in testing. Here we take a more scientific and theoretical approach to explain the differences. We describe incorporating mock objects, or stubs, and dive into the details of in-container testing.
The first chapter of this part describes different techniques for improving the quality of your tests—measuring test coverage, practicing test-driven development, and writing testable code.
The sixth chapter of the book is dedicated to stubs. We look into another solution to isolate the environment and make our tests seamless.
The seventh chapter starts by explaining what mock objects are. We give a thorough overview of how to construct ...
Get JUnit in Action, Second 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.