O'Reilly logo

JUnit in Action, Second Edition by Gary Gregory, Vincent Massol, Felipe Leme, Petar Tahchiev

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix E. Installing software

This appendix covers

  • Installing HtmlUnit
  • Configuring Cactus with HtmlUnit
  • Installing Selenium
  • Installing RhinoUnit
  • Installing JsUnit

E.1. Installing HtmlUnit

Download HtmlUnit from http://htmlunit.sourceforge.net/ and unzip it to your local drive. In our examples, we have unzipped it to C:\Java\htmlunit-2.7.

E.1.1. Standard configuration

Add all JAR files to the classpath except for the three XML libraries: XML-APIs, Xalan, and Xerces. Starting with version 1.4.2, Java ships with an XML parser and transformer (Apache Xalan). Because HtmlUnit ships with XML-APIs, Xalan, and Xerces, the version of these libraries must override the default Java versions through the Java-endorsed mechanism.[1], [2]

1 For ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required