Using JUnit

To add JUnit capabilities to your module, add the following jars to your project:

You can find these jar files in your NetBeans installation at the following location:

C:\Users\xxxxxxxx\AppData\Roaming\NetBeans\7.3.1\modules\ext\junit-4.10.jar

C:\Users\xxxxxxxx\AppData\Roaming\NetBeans\7.3.1\modules\org-netbeans-libs-junit4.jar

C:\Users\xxxxxxxx\AppData\Roaming\NetBeans\7.3.1\modules\org-netbeans-modules-junitlib.jar

Reading INTViewer Data Files in Unit Tests

JUnit is not aware of the NetBeans data pool that underlies the INTViewer data pool/factory:

If you want to use the IData.factory.createNewInstance method as part of your tests, you need to add test dependencies for the Master Filesystem. The following lines need to be added to your project.xml file:

          <test-dependency>
               <code-name-base>org.netbeans.modules.masterfs</code-name-base>
          </test-dependency>

Here is an example of what a project.xml file will look like:

For more information about this NetBeans file system, consult this article: http://wiki.netbeans.org/UsingFileSystemsMasterfs