close menu
Bookswagon-24x7 online bookstore
close menu
My Account
Next Generation Java Testing: TestNG and Advanced Concepts

Next Generation Java Testing: TestNG and Advanced Concepts

          
5
4
3
2
1

Out of Stock


Premium quality
Premium quality
Bookswagon upholds the quality by delivering untarnished books. Quality, services and satisfaction are everything for us!
Easy Return
Easy return
Not satisfied with this product! Keep it in original condition and packaging to avail easy return policy.
Certified product
Certified product
First impression is the last impression! Address the book’s certification page, ISBN, publisher’s name, copyright page and print quality.
Secure Checkout
Secure checkout
Security at its finest! Login, browse, purchase and pay, every step is safe and secured.
Money back guarantee
Money-back guarantee:
It’s all about customers! For any kind of bad experience with the product, get your actual amount back after returning the product.
On time delivery
On-time delivery
At your doorstep on time! Get this book delivered without any delay.
Notify me when this book is in stock
Add to Wishlist

About the 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 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:
Foreword     xiii
Preface     xv
Acknowledgments     xxi
About the Authors     xxiii
Chapter 1: Getting Started     1
Beyond JUnit 3     3
JUnit 4     7
Designing for Testability     8
TestNG     17
Conclusion     21
Chapter 2: Testing Design Patterns     23
Testing for Failures     23
Factories     34
Data-Driven Testing     39
Asynchronous Testing     67
Testing Multithreaded Code     71
Performance Testing     83
Mocks and Stubs     90
Dependent Testing     103
Inheritance and Annotation Scopes     113
Test Groups     119
Code Coverage     132
Conclusion     150
Chapter 3: Enterprise Testing     153
A Typical Enterprise Scenario     154
A Concrete Example     157
Test Implementation     160
Exploring the Competing Consumers Pattern     182
The Role of Refactoring     186
Conclusion     194
Chapter 4: Java EE Testing     197
In-Container versus Out-of-Container Testing     198
In-Container Testing     200
Java Naming and Directory Interface (JNDI)     207
Java Database Connectivity (JDBC)     210
Java Transaction API (JTA)     215
Java Messaging Service (JMS)     219
Java Persistence API (JPA)     225
Enterprise Java Beans 3.0 (EJB3)     236
Java API for XML Web Services (JAX-WS)     246
Servlets     255
XML     262
Conclusion     266
Chapter 5: Integration     269
Guice     280
DbUnit     295
HtmlUnit     303
Selenium     310
Swing UI Testing     312
Tests for Painting Code     316
Continuous Integration     320
Conclusion     322
Chapter 6: Extending TestNG     325
The TestNG API     325
BeanShell     335
Method Selectors     341
Annotation Transformers     346
Reports     355
Writing Custom Annotations     366
Conclusion     375
Chapter 7: Digressions     377
Motivation     377
The TestNG Philosophy     378
The Care and Feeding of Exceptionsv378
Stateful Tests     382
The Pitfalls of Test-Driven Development     385
Testing Private Methods     388
Testing versus Encapsulation     391
The Power of Debuggers     392
Logging Best Practices     394vThe Value of Time     397
Conclusion     399
Appendix A: IDE Integration     401
Eclipse     401
IntelliJ IDEA     411
Appendix B: TestNG Javadocs     421
JDK 1.4 and JDK 5     421
Shortcut Syntax for JDK 5 Annotations     423
Annotation Javadocs     423
The org.testng.TestNG Class     428
The XML API     432
Appendix C: testng.xml     435
Overview     436
Scopes     437
XML Tags     437
Appendix D: Migrating from JUnit     449
JUnitConverter     449
Integrated Development Environments     453
Incremental Migration and JUnit Mode     455
Converting JUnit Code     456
Index     471


Best Seller

| | See All


Product Details
  • ISBN-13: 9780132702270
  • Publisher: Pearson Education (US)
  • Publisher Imprint: Addison Wesley
  • Language: English
  • Sub Title: TestNG and Advanced Concepts
  • ISBN-10: 0132702274
  • Publisher Date: 15 Oct 2007
  • Binding: Digital download
  • No of Pages: 512


Similar Products

How would you rate your experience shopping for books on Bookswagon?

Add Photo
Add Photo

Customer Reviews

REVIEWS           
Click Here To Be The First to Review this Product
Next Generation Java Testing: TestNG and Advanced Concepts
Pearson Education (US) -
Next Generation Java Testing: TestNG and Advanced Concepts
Writing guidlines
We want to publish your review, so please:
  • keep your review on the product. Review's that defame author's character will be rejected.
  • Keep your review focused on the product.
  • Avoid writing about customer service. contact us instead if you have issue requiring immediate attention.
  • Refrain from mentioning competitors or the specific price you paid for the product.
  • Do not include any personally identifiable information, such as full names.

Next Generation Java Testing: TestNG and Advanced Concepts

Required fields are marked with *

Review Title*
Review
    Add Photo Add up to 6 photos
    Would you recommend this product to a friend?
    Tag this Book
    Read more
    Does your review contain spoilers?
    What type of reader best describes you?
    I agree to the terms & conditions
    You may receive emails regarding this submission. Any emails will include the ability to opt-out of future communications.

    CUSTOMER RATINGS AND REVIEWS AND QUESTIONS AND ANSWERS TERMS OF USE

    These Terms of Use govern your conduct associated with the Customer Ratings and Reviews and/or Questions and Answers service offered by Bookswagon (the "CRR Service").


    By submitting any content to Bookswagon, you guarantee that:
    • You are the sole author and owner of the intellectual property rights in the content;
    • All "moral rights" that you may have in such content have been voluntarily waived by you;
    • All content that you post is accurate;
    • You are at least 13 years old;
    • Use of the content you supply does not violate these Terms of Use and will not cause injury to any person or entity.
    You further agree that you may not submit any content:
    • That is known by you to be false, inaccurate or misleading;
    • That infringes any third party's copyright, patent, trademark, trade secret or other proprietary rights or rights of publicity or privacy;
    • That violates any law, statute, ordinance or regulation (including, but not limited to, those governing, consumer protection, unfair competition, anti-discrimination or false advertising);
    • That is, or may reasonably be considered to be, defamatory, libelous, hateful, racially or religiously biased or offensive, unlawfully threatening or unlawfully harassing to any individual, partnership or corporation;
    • For which you were compensated or granted any consideration by any unapproved third party;
    • That includes any information that references other websites, addresses, email addresses, contact information or phone numbers;
    • That contains any computer viruses, worms or other potentially damaging computer programs or files.
    You agree to indemnify and hold Bookswagon (and its officers, directors, agents, subsidiaries, joint ventures, employees and third-party service providers, including but not limited to Bazaarvoice, Inc.), harmless from all claims, demands, and damages (actual and consequential) of every kind and nature, known and unknown including reasonable attorneys' fees, arising out of a breach of your representations and warranties set forth above, or your violation of any law or the rights of a third party.


    For any content that you submit, you grant Bookswagon a perpetual, irrevocable, royalty-free, transferable right and license to use, copy, modify, delete in its entirety, adapt, publish, translate, create derivative works from and/or sell, transfer, and/or distribute such content and/or incorporate such content into any form, medium or technology throughout the world without compensation to you. Additionally,  Bookswagon may transfer or share any personal information that you submit with its third-party service providers, including but not limited to Bazaarvoice, Inc. in accordance with  Privacy Policy


    All content that you submit may be used at Bookswagon's sole discretion. Bookswagon reserves the right to change, condense, withhold publication, remove or delete any content on Bookswagon's website that Bookswagon deems, in its sole discretion, to violate the content guidelines or any other provision of these Terms of Use.  Bookswagon does not guarantee that you will have any recourse through Bookswagon to edit or delete any content you have submitted. Ratings and written comments are generally posted within two to four business days. However, Bookswagon reserves the right to remove or to refuse to post any submission to the extent authorized by law. You acknowledge that you, not Bookswagon, are responsible for the contents of your submission. None of the content that you submit shall be subject to any obligation of confidence on the part of Bookswagon, its agents, subsidiaries, affiliates, partners or third party service providers (including but not limited to Bazaarvoice, Inc.)and their respective directors, officers and employees.

    Accept

    New Arrivals

    | | See All


    Inspired by your browsing history


    Your review has been submitted!

    You've already reviewed this product!
    ASK VIDYA