Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

10.6. Contributions

These contributions are not written as Eclipse plug-ins, but they are very useful libraries for JUnit testing. Each contribution extends the JUnit framework and includes a specialized subclass of junit.framework.TestCase used for writing tests. Because the Eclipse JUnit view and commands work with any subclass of TestCase, these contributions work inside Eclipse without any modification.

HttpUnit. When testing Web applications, you need to bypass the browser and access your site from a program. HttpUnit makes this easy by emulating the relevant portions of browser behavior, including form submission, JavaScript, basic HTTP authentication, cookies, and automatic page redirection. It also allows test code to examine returned pages. See www.httpunit.org.

Cactus. A test framework for server-side Java code (Servlets, EJBs, Tag Libs, Filters). See jakarta.apache.org/cactus/.

DbUnit. A framework for writing tests using data from relational databases. This framework uses XML datasets (collections of data tables) and performs database operations before and after each test to assure that database content is in a known state. See www.dbunit.org.


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint