CRJAZ0281E The "org.junit" dependency bundle cannot be installed.
Hello,
I am developing a plug-in for RTC 4. I am also testing the plug-in using JUnit.
When starting the server after deploying the new plug-in, i get this error in the log:
CRJAZ0281E The "org.junit" dependency bundle cannot be installed.
I am new the the RTC extending chapter. Is it not possible to use JUnit in plug-ins?
I also made a test to see if it can be deployed without the JUnit, and it worked...partially. The installation of the new plug-in was ok, but when hitting the "save" work item button, it failed. In the log i could see a ClassNotFound exception, referring to the new operation advisor class that I created.
Any ideas?
Thank you very much!
Have a great day,
Andrada
I am developing a plug-in for RTC 4. I am also testing the plug-in using JUnit.
When starting the server after deploying the new plug-in, i get this error in the log:
CRJAZ0281E The "org.junit" dependency bundle cannot be installed.
I am new the the RTC extending chapter. Is it not possible to use JUnit in plug-ins?
I also made a test to see if it can be deployed without the JUnit, and it worked...partially. The installation of the new plug-in was ok, but when hitting the "save" work item button, it failed. In the log i could see a ClassNotFound exception, referring to the new operation advisor class that I created.
Any ideas?
Thank you very much!
Have a great day,
Andrada
Accepted answer
If you look at the RTC SDK, you realize that it used JUnit for testing as well. However, you should separate the projects with JUnit tests from the Projects with production code to be deployed. You don't want to have a dependency to JUnit in your production plugins. If you want, make sure JUnit is available to the extension e.g. deploy it on the server and make it available (not sure how you would do this).
See https://rsjazz.wordpress.com/2014/07/22/manage-scheduled-absences-using-the-plainjava-client-libraries/ where I test a client plugin with JUnit.
See https://rsjazz.wordpress.com/2014/07/22/manage-scheduled-absences-using-the-plainjava-client-libraries/ where I test a client plugin with JUnit.