Banner 468 X 60

Next Generation Java Testing


Chapter 2 - Testing Design Patterns
In this chapter, we’ll examine a number of patterns and common problems that have emerged through practical applications of testing. Starting with failure testing, we will also explore Data-Driven Testing, concurrency testing, the role of mocks and stubs in the testing world, techniques for effective test grouping, and ways to use code coverage as a testing aid.
Chapter 3 - Enterprise Testing
This chapter and the following one discuss testing issues with both definitions of enterprise. We need to be aware of a number of key concepts and issues when testing enterprise applications. These issues are not concerned with APIs but rather with the very nature of enterprise systems: complex integration issues, legacy system support, black-box testing, and so on.

Chapter 4 - Java EE Testing
This chapter will show examples of how to write tests for these components and how to initialize them correctly to best simulate their actual usage at deployment time.
Chapter 5 - Integration
In this chapter, we will cover integration solutions with a number of popular add-ons and testing frameworks, starting with Spring, going through DbUnit, and HtmlUnit, a unit testing framework to ease the pain of testing HTML content.
Chapter 6 - Extending TestNG
Now that we have discussed and explored many of the TestNG features, this chapter will focus on taking the next step and adding custom handling for various aspects of TestNG.
Chapter 7 - Digressions
This chapter contains all of our pet peeves, rants, annoyances, and musings that took place behind the scenes while writing this book. Much of it is only very tangentially relevant, some of it is outright irrelevant, and yes, some of it is even on topic and relevant.

Appendix A - IDE Integration
This appendix includes a couple of guides for integrating TestNG into the two most popular Java IDEs: Eclipse and JetBrains’ IDEA.
Appendix B - TestNG Javadocs
This appendix contains a list of the important Javadocs TestNG classes.
Appendix C - testng.xml
In this appendix, we’ll examine the structure of this file in detail, and we’ll show how changing certain parameters affects how tests are run.
Appendix D - Migrating from JUnit
In this appendix, we explain how existing JUnit 3 tests can be migrated to TestNG.

Download:
Link_1

0 comments: