13.07.2015 Views

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

Java™ Application Development on Linux - Dator

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

13.4 Installing and Running JUnit29913.4.1 Downloading and UnzippingPoint your browser at the site http://www.junit.org/ (Figure 13.1). Fromthe main page, choose the Download heading.That takes you to a SourceForge site (Figure 13.2); click <strong>on</strong> <strong>on</strong>e of thesites near you, though any will do. The download is <strong>on</strong>ly a few hundredkilobytes, so it shouldn’t take l<strong>on</strong>g.You’ll be left with a file named junitX.Y.Z.zip, where the X, Y, Z charactersare the digits that tell you what release of JUnit this is. Our examplesshow the 3.8.1 release.NOTEIt’s a good idea to inspect the ZIP files that you download before you actuallyunzip them. We like to know what files and especially what directories are goingto get modified or cluttered up by the unzipping. Some ZIP files come with alltheir files inside of a single folder. Those are fine to unzip in place. Other ZIPfiles have been built from lots of pieces and unzipping them can make a messof your current directory, or worse, of other directories that you may not evenknow about. Instead, play it safe and look before you leap. You can see the listof all the files in the JUnit ZIP file by typing this command:$ unzip -l junit3.8.1.zipThe -l opti<strong>on</strong> will produce a listing of the c<strong>on</strong>tents of the ZIP file. Thatway you can see what subdirectories it will create, that is, if it is going to unpackinto a single directory or make a mess. The JUnit ZIP file is very well behavedin this respect.Figure 13.1 The JUnit home page

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!