Appendix D. JUnit IDE integration

 

This appendix covers

  • Installing Eclipse and NetBeans
  • Setting up the book’s source code in Eclipse and NetBeans
  • Running JUnit tests in Eclipse and NetBeans

In this appendix, you’ll get to know the two most popular Java IDEs: the Eclipse IDE and the NetBeans IDE. We cover installation procedures, configuration, and how to run the book’s source code from within the IDEs.

D.1. JUnit integration with Eclipse

This section serves as a quick start to get you up and running with Eclipse and with the integrated JUnit.

D.1.1. Installing Eclipse

Installing Eclipse is very simple; the process consists of downloading Eclipse from http://eclipse.org/ and then unzipping it to somewhere on your hard drive. We recommend downloading Eclipse 3.2 or greater. In the remainder of this appendix, we assume Eclipse is installed in [ECLIPSE_HOME] (for example, C:\eclipse-3.2).

D.1.2. Setting up Eclipse projects from the source

It’s extremely easy to set up an Eclipse project, because we provide the Eclipse project files with the book’s source code distribution. Please refer to appendix C, “The source code for the book,” for directory structure organization and project names.

D.2. Introducing the JUnitMAX Eclipse plug-in

D.3. JUnit integration with NetBeans