O'Reilly logo

Borland® JBuilder™ Developer’s Guide by Jeff Swisher, Saleem Siddiqui, Michael Landy

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

In Practice

The following unit testing tutorial helps you gain experience using JBuilder’s unit testing features. To learn more about the JUnit testing framework, visit www.junit.org.

The application’s goal is to unit test a class named FunctionalClass.

The exercise shows you how to set up a test case and a comparison test fixture.

Step 1: Opening the Unit Testing Sample Project

In this step, you open the sample project and the source code file that contains errors.

To open the example project, follow these steps:

1.
Select File, Open Project from the JBuilder menu.
2.
Locate the jbbook/ch05/UnitTestSample.jpx and click on OK.
3.
The project opens in the Project pane. The project is composed of five Java files:
  • FunctionalClass.java

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