Book description
Enterprise Java developers must achieve broader, deeper test coverage, going beyond unit testing to implement functional and integration testing with systematic acceptance. Next Generation Java™ Testing introduces breakthrough Java testing techniques and TestNG, a powerful open source Java testing platform.
Cédric Beust, TestNG's creator, and leading Java developer Hani Suleiman, present powerful, flexible testing patterns that will work with virtually any testing tool, framework, or language. They show how to leverage key Java platform improvements designed to facilitate effective testing, such as dependency injection and mock objects. They also thoroughly introduce TestNG, demonstrating how it overcomes the limitations of older frameworks and enables new techniques, making it far easier to test today's complex software systems.
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.
Table of contents
- Title Page
- Copyright Page
- Content Page
- Foreword
- Preface
- Acknowledgments
- About the Authors
- Chapter 1. Getting Started
- Chapter 2. Testing Design Patterns
- Chapter 3. Enterprise Testing
- Chapter 4. Java EE Testing
- Chapter 5. Integration
- Chapter 6. Extending TestNG
- Chapter 7. Digressions
- Appendix A. IDE Integration
- Appendix B. TestNG Javadocs
- Appendix C. testng.xml
- Appendix D. Migrating from JUnit
- Index
- Footnote
Product information
- Title: Next Generation Java™ Testing: TestNG and Advanced Concepts
- Author(s):
- Release date: October 2007
- Publisher(s): Addison-Wesley Professional
- ISBN: None
You might also like
book
Selenium Framework Design in Data-Driven Testing
Take a deep dive into building data-driven test frameworks using Selenium WebDriver About This Book A …
book
Mastering Software Testing with JUnit 5
A comprehensive, hands-on guide on unit testing framework for Java programming language About This Book In-depth …
video
Automation Framework Design Using TestNG
A comprehensive course to help you gain all the skills and knowledge you need in order …
video
JUnit and Mockito Unit Testing for Java Developers
Are you looking for a simple, no-nonsense guide to learning how unit testing works? This video …