Jump to ratings and reviews
Rate this book

Next Generation Java Testing: TestNG and Advanced Concepts

Rate this book
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(TM) Testing introduces breakthrough Java testing techniques and TestNG, a powerful open source Java testing platform.

Cedric 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(TM) 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.

482 pages, Paperback

First published October 15, 2007

Loading interface...
Loading interface...

About the author

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
13 (34%)
4 stars
16 (42%)
3 stars
6 (15%)
2 stars
3 (7%)
1 star
0 (0%)
Displaying 1 - 6 of 6 reviews
Profile Image for Gian Luca.
9 reviews
January 20, 2012
La parte che spiega TestNG non dice molto di più della documentazione on - line.
Quello che da valore al libro sono i design pattern per i test, applicabili sia a TestNG che a Junit.
10 reviews5 followers
March 29, 2020
This book is written by the creator of testng. This book delves into the history of java based test frameworks; outlines the shortcomings of existing frameworks like jUnit and the underlying focus of testng. All in all a good book to learn about testng and good testing design practices.
3 reviews
December 4, 2019
old book

Is old book with old references, has great concepts but is not encouraged to follow as is since there are more mature frameworks nowadays
19 reviews
January 6, 2015
I liked the approaches to testing that were covered.
Everything from the basics of assertions, through mocks, on up to in container j2ee and beyond.
I recommend this book to all of my QAs even when we are using Junit.
I go so far as to buy them a copy and place it on their desk.
Profile Image for Kaiyin Hu.
2 reviews
March 11, 2015
I really like the part of "enterprise testing". It talks about the approach of testing a component. It's practical and helpful to my current project.
Displaying 1 - 6 of 6 reviews

Can't find what you're looking for?

Get help and learn more about the design.