or
Sign in to turn on 1-Click ordering.
 
 
Express Checkout with PayPhrase
What's this? | Create PayPhrase
More Buying Choices
37 used & new from $19.40

Have one to sell? Sell yours here
 
   
Next Generation Java Testing: TestNG and Advanced Concepts
 
See larger image
 

Next Generation Java Testing: TestNG and Advanced Concepts (Paperback)

~ Cédric Beust (Author), Hani Suleiman (Author)
3.8 out of 5 stars  See all reviews (10 customer reviews)

List Price: $54.99
Price: $30.33 & this item ships for FREE with Super Saver Shipping. Details
You Save: $24.66 (45%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
In Stock.
Ships from and sold by Amazon.com. Gift-wrap available.

Want it delivered Tuesday, November 17? Choose One-Day Shipping at checkout. Details
23 new from $30.33 14 used from $19.40

Formats

Amazon Price New from Used from
  Kindle Edition, October 15, 2007 $24.26 -- --
  Paperback, October 24, 2007 $30.33 $30.33 $19.40

Frequently Bought Together

Customers buy this book with Test Driven: Practical TDD and Acceptance TDD for Java Developers by Lasse Koskela

Next Generation Java Testing: TestNG and Advanced Concepts + Test Driven: Practical TDD and Acceptance TDD for Java Developers

Customers Who Bought This Item Also Bought

Maven: The Definitive Guide

Maven: The Definitive Guide

by Sonatype Company
3.9 out of 5 stars (7)  $23.09
Continuous Integration: Improving Software Quality and Reducing Risk

Continuous Integration: Improving Software Quality and Reducing Risk

by Paul M. Duvall
4.7 out of 5 stars (16)  $23.00
Effective Java (2nd Edition)

Effective Java (2nd Edition)

by Joshua Bloch
4.9 out of 5 stars (36)  $35.47
Java Concurrency in Practice

Java Concurrency in Practice

by Brian Goetz
4.8 out of 5 stars (60)  $37.79
xUnit Test Patterns: Refactoring Test Code

xUnit Test Patterns: Refactoring Test Code

by Gerard Meszaros
4.6 out of 5 stars (13)  $47.99
Explore similar items

Editorial Reviews

Product 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.



About the Author

Cédric Beust, a senior software engineer at Google, is an active member of the Java Community Process who has been extensively involved in the development of the latest Java release. He is the creator and main contributor to the TestNG project.

Hani Suleiman is CTO of Formicary, a consulting and portal company specializing in financial applications. He is one of two individual members who has been elected to the Executive Committee of the Java Community Process.


Product Details

  • Paperback: 512 pages
  • Publisher: Addison-Wesley Professional; 1 edition (October 25, 2007)
  • Language: English
  • ISBN-10: 0321503104
  • ISBN-13: 978-0321503107
  • Product Dimensions: 9.2 x 6.9 x 1.3 inches
  • Shipping Weight: 2.2 pounds (View shipping rates and policies)
  • Average Customer Review: 3.8 out of 5 stars  See all reviews (10 customer reviews)
  • Amazon.com Sales Rank: #369,216 in Books (See Bestsellers in Books)

    Popular in this category: (What's this?)

    #97 in  Books > Computers & Internet > Programming > Software Design, Testing & Engineering > Testing

More About the Author

Cédric Beust
Discover books, learn about writers, read author blogs, and more.

Visit Amazon's Cédric Beust Page

What Do Customers Ultimately Buy After Viewing This Item?

Next Generation Java Testing: TestNG and Advanced Concepts
78% buy the item featured on this page:
Next Generation Java Testing: TestNG and Advanced Concepts 3.8 out of 5 stars (10)
$30.33
Test Driven: Practical TDD and Acceptance TDD for Java Developers
9% buy
Test Driven: Practical TDD and Acceptance TDD for Java Developers 3.9 out of 5 stars (16)
$29.69
Effective Java (2nd Edition)
5% buy
Effective Java (2nd Edition) 4.9 out of 5 stars (36)
$35.47
Java Power Tools
5% buy
Java Power Tools 4.7 out of 5 stars (10)
$37.79

Tags Customers Associate with This Product

 (What's this?)
Click on a tag to find related items, discussions, and people.
 
(7)
(3)

Your tags: Add your first tag
 

 

Customer Reviews

10 Reviews
5 star:
 (4)
4 star:
 (2)
3 star:
 (3)
2 star:    (0)
1 star:
 (1)
 
 
 
 
 
Average Customer Review
3.8 out of 5 stars (10 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

 
20 of 23 people found the following review helpful:
3.0 out of 5 stars testng & rants, December 9, 2007
By Jeanne Boyarsky (New York, NY) - See all my reviews
"Next Generation Java Testing" has a subtitle: "TestNG and Advanced Concepts." This isn't surprising given the creator of TestNG is an author, but is important to realize. It starts with 6.5 pages on why TestNG is better than JUnit 3.8. Then only two paragraphs on JUnit 4. This has been a pet peeve of mine for some time. It's like comparing the current version of C# to Java 1.3 and then saying Java is worse because it doesn't have generics.

I liked the code snippets in the TestNG sections as they focused on relevant pieces. The examples were to the point. Especially the performance and J2EE sections. I liked the concepts described in chapter 2 (over 100 pages.)

The authors describe open source libraries that integrate with TestNG. I liked this coverage although JMock could have used a code example for comparison (easyMock had one.) Ant targets were provided for the code coverage examples.

Chapter seven is titled "digressions." Some quotes from the text on this: "pet peeves, rants, annoyances and musings", "much ... very tangentially relevant", "some ... outright irrelavant." I agree with some and disagree with some. I think this chapter would have been better as a series of blog posts than a chapter in a book.

If you are using/planning to use TestNG and can ignore the rants, this is a good book.
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
6 of 7 people found the following review helpful:
5.0 out of 5 stars Practical Testing with a very good framework, February 1, 2008
By D. M. Shetty (Fremont, CA, USA) - See all my reviews
(REAL NAME)   
At last a book that deals with testing applications (in java) that seems to be written by author's who have worked with real life, non trivial projects(TDD with adding two money objects together, anyone?).
This book describes using TestNG along with some advanced TestNG concepts and goes on to show how to use the framework to test out JEE projects. There are also chapters showing the developer how to integrate TestNG with other frameworks (like spring, DBUnit, jwebunit etc) which is useful as this is perhaps the only place where JUnit is better than TestNG. Inspite of the fact that TestNG documentation is pretty good, this book is worthwile buying (even if you use JUnit as your testing tool of choice).
There is useful coding and refactoring advice along the way(also a commentary on TDD), and a miscellaneous chapter of sorts which seems to have been written by Hani and edited by Cedric to remove all profanities!.
I do hope the author's expand the testing enterprise application bits to cover more testing scenarios and examples in later additions.
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)



 
13 of 17 people found the following review helpful:
5.0 out of 5 stars 5 with a Few Qualms, November 27, 2007
By R. Williams "code slubber" (Los Angeles, CA United States) - See all my reviews
(REAL NAME)      
This was not the book I expected, but it makes a lot of sense that it turned out this way. Cedric is like the Martin Luther of the testing world. I ranted about a lot of the same things in JUnit, especially for instance, the whole crazy TestDecorator business, but Cedric just blew the house down. TestNG, after JUnit, was like getting out of jail.

So it makes sense that this book is a kind of exhaustive compendium of testing approaches, and as such, it succeeds, in most ways. There are a few things that don't show up, for instance, there is discussion of container testing, but Shale is not mentioned (unit testing JSF is made much better by it, and JSF is part of JEE5 so it deserves attention). The section on testing XML was good, considering dom4j, XMLUnit, etc., but it ends too quickly. For instance, what about using XPath statements? or some schema tools?

Given that Cedric's partner in crime, of Bileblog fame, was aboard for this outing, rants were bound to ensue, and they are mostly useful and add value, if they are rather tame. The one about logging left me just totally perplexed. Logging is not good? It's made out to be even possibly harmful? Say what? On the other hand, the rants about JUnit are on target. Their rant about using test coverage as a badge of honor is right on the money.

They even go into Spring's test mechanisms, and do a good job with it. Then they skate through Guice to discuss some of the advantages of preventing the spread into XML. Now, the lead argument here is that not only does the metadata produce bloat, but it puts logic out of the grasp of refactoring tools (an argument Cedric has used v. dynamic languages).

In an age where computer books are usually long articles, this book goes through a dizzying range of subjects, and does so without resorting to the bland repetition of documentation that is already out there. I could only have wished for a greater emphasis on innovation. The reason is that this book I am afraid will scare people who really need to be brought into the fold. It's pathetic, really, but most teams are still either not testing or doing crazy things like writing a few tests after delivering the code. For people who have dug around trying to get a lot of the right things into their test diet, this is the best guide available right now.
Comment Comment | Permalink | Was this review helpful to you? Yes No (Report this)


Share your thoughts with other customers: Create your own review
 
 
 
Most Recent Customer Reviews

1.0 out of 5 stars Really, Really Weak
I'm surprise, in the worst sense, with this book.
I'm begining now with TDD, and studied JUnit. Read more
Published 7 months ago by Marco A. S. Castanheira

4.0 out of 5 stars a few rants, but a ton of useful information
This book does more than go into TestNG, it also goes into some wonderful discussions about theory, general practices, etc. and how they explicitly apply to the Java world. Read more
Published 10 months ago by J. Brutto

5.0 out of 5 stars Looks like a Great Book
I have not read this book beyond the first chapter yet, because I fell asleep reading it in the bathroom, but it looks great sitting on my desk at the office. Read more
Published 10 months ago by lostmouse

3.0 out of 5 stars Pragmatic Java Testing: TestNG and Author's Rants
This book does a great job of introducing TestNG, showing how to use its features to set up tests for code that (inevitably) depends on various JEE APIs, and how to perform... Read more
Published 13 months ago by Eric Jain

3.0 out of 5 stars so when am I going to learn testng?
This book is not really about testng. it's more about the author's opinions about testing, which are for the most part valid, but I bought this book mostly for the testng part,... Read more
Published 15 months ago by Sameer

4.0 out of 5 stars Very informative and nicely written
Very nicely written keeping real world requirements in mind. Could have had some more examples.
Published 20 months ago by Pankaj Vij

5.0 out of 5 stars A top recommendation.
College-level libraries strong in Java programming guides need NEXT GENERATION JAVA TESTING: unlike many Java programmer's guides, it provides a pragmatic discussion for Java... Read more
Published 22 months ago by Midwest Book Review

Only search this product's reviews



Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 


Active discussions in related forums
Search Customer Discussions
Search all Amazon discussions
   




Product Information from the Amapedia Community

Beta (What's this?)


Look for Similar Items by Category


Look for Similar Items by Subject

 

Feedback

If you need help or have a question for Customer Service, contact us.
 Would you like to update product info or give feedback on images?
Is there any other feedback you would like to provide?

Your comments can help make our site better for everyone.


Your Recent History

 (What's this?)

After viewing product detail pages or search results, look here to find an easy way to navigate back to pages you are interested in.