Pragmatic and results-focused, Next Generation Java? Testing will help Java developers build more robust code for today's mission-critical environments.
This book
Illuminates the tradeoffs associated with testing, so you can make better decisions about what and how to test
Introduces TestNG, explains its goals and features, and shows how to apply them in real-world environments
Shows how to integrate TestNG with your existing code, development frameworks, and software libraries
Demonstrates how to test crucial code features, such as encapsulation, state sharing, scopes, and thread safety
Shows how to test application elements, including JavaEE APIs, databases, Web pages, and XML files
Presents advanced techniques: testing partial failures, factories, dependent testing, remote invocation, cluster-based test farms, and more
Walks through installing and using TestNG plug-ins for Eclipse, and IDEA
Contains extensive code examples
Whether you use TestNG, JUnit, or another testing framework, the testing design patterns presented in this book will show you how to improve your tests by giving you concrete advice on how to make your code and your design more testable.