19.09.2015 Views

Prentice.Hall.Introduction.to.Java.Programming,.Brief.Version.9th.(2014).[sharethefiles.com]

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Figure 50.15<br />

The New JUnit Test Case dialog box creates a Test class.<br />

Figure 50.16<br />

The LoanTest class is au<strong>to</strong>matically generated.<br />

You can now modify LoanTest by copying the code from Listing 50.2. Run<br />

LoanTest.java. You will see the test report as shown in Figure 50.17.<br />

16

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

Saved successfully!

Ooh no, something went wrong!