NetBeans Extension to JUnit Overview Document
Version: 1.0
Author: Martin
Brehovsky
Abstract: This document describes NetBeans Extension to JUnit.
- Document History:
- 24 Jan 2002 : Martin Brehovsky, created
- Contents:
- 1. What is NetBeans Extension to JUnit
- 2. Why NbJUnit
- 3. Where to get more documentation
NetBeans Extension to JUnit (also known as NbJUnit) is an extension which
gives JUnit users more functionality than plain JUnit. It allows users to
compare files via assertFile methods, create working directories for testcases,
write to log files, compare log files against reference (golden) files,
etc. The current version of NbJUnit requires at least version 3.7
of JUnit framework
When writing tests for NetBeans IDE, we soon realized that our tests
needed a bit more functionality than just plain JUnit. We also planned to
use JUnit framework for other types of tests than unit ones. So we started
with extending JUnit by adding methods directly to the framework, but later
we decided to create a library which would be more independent of JUnit
releases than the previous code. The result is called "NbUnit' - a small
library extending the original JUnit to better fulfill NetBeans teams needs.
- Before using the extension in your tests, please make
sure you have it properly configured. More information about configuration
can be found here.
- A good start for learning the API is always to browse the JavaDoc.
If you installed the NBJUnit module in NetBeans, you can find it in ${NETBEANS_USER_DIR}/org-netbeans-modules-nbjunit.zip.
- You can also learn how to use NbJUnit in this tutorial.