Adding test-only dependencies for non-OSGi JUnit test in a Tycho project
I have several OSGi-bundles that I build with Eclipse Tycho. All code dependencies are managed manifest-first. Now I want to develop some pure JUnit-Tests in order to test bundle-internal functionality. These tests do not need an OSGi-container in order to be executed, but they do need Mockito. As Mockito obviously is only needed when this non-OSGi-tests are being run and not during the execution of the bundle itself, it feels wrong to add the dependency to the MANIFEST.MF file. My current approach is that I added a project/lib-folder that holds the mockito.jar and that I added this jar to his