The JBuilder IDE makes it easier to implement unit testing using the open JUnit testing framework. JBuilder’s fixture utility classes provide quick methods to connect to a database or naming service, making unit testing setup easier.

Best practices state that you should unit test every method in your class. In reality, the time to unit test every method may result in unreasonable delays and wasted effort. Our recommendation is to create unit tests only for complex methods and/or nonprivate methods. Complex methods are ones that manipulate the database or make several method calls into your other classes. By unit testing the most complex portions of your code, you can greatly reduce the cost of maintaining that code.

Finally, most studies ...

Get Borland® JBuilder™ Developer’s Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.