I am working on a Netbeans platform RCP application.
I use jmock in my unit tests, and I created a Wrapper library module to import the necessary libraries.
The module has a section called " Libraries " and another section called " Unit Test Libraries ".
I was hoping I could add the JMock library's Wrapper to the Unit Test libraries, however, when I run the unit tests, I get the error “ package org.jmock does not exist ”.
If I import the JMock Wrapper library into the main Library item, then it works, but it seems to be wrong.
Maven allows me to specify only units of measure for dependencies only, and I assumed that the NetBeans platform did the same. Should this be possible? Am I doing something wrong? Do I have to put up with runtime dependency on unit-test (ugh) libraries.
source
share