Summary

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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.