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

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