C H A P T E R  42

Testing NetBeans Platform Applications

Two different kinds of tests can be identified for implementing and running tests with NetBeans Platform applications: unit tests and functional tests. This chapter will address both kinds of tests and the support NetBeans provides for them.

Unit Tests

Unit tests for NetBeans Platform applications are implemented based on the popular test framework JUnit. NetBeans provides an extension of JUnit with the library NB JUnit. This library provides numerous helper classes, which make testing classes and methods within the NetBeans Platform a lot easier.

Caution JUnit is no longer part of the NetBeans IDE. Now, at installation you will be asked whether you want to install JUnit or not. The ...

Get The Definitive Guide to NetBeans™ Platform 7 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.