In an earlier post I showed how to add Mockito to Eclipse target definitions. This allows plug-in developers to write and run Mockito-based unit tests both inside the Eclipse IDE and in Maven Tycho builds. There was, however, one missing piece to this functionality – the ability to run tests using the Mockito JUnit 5… Continue reading Testing Eclipse RCP applications with the Mockito JUnit 5 extension
Tag: Eclipse Plug-in Development
Including Maven artifacts in an Eclipse RCP target platform
One of the most difficult issues facing Eclipse RCP developers has been how to consume third-party libraries. We often want to use JAR files not available as OSGi plug-ins (missing OSGi metadata) or that are not available in a p2 repository. So far, our options have included: Accessing a JAR file in Eclipse Orbit. For… Continue reading Including Maven artifacts in an Eclipse RCP target platform
Adding support for Mockito to an Eclipse target definition
In my previous post I showed how to add JUnit support to Eclipse target definitions. This allows plug-in developers to write and run unit tests (both regular and in-container) using all of the tools available in the Eclipse IDE. I had a request to show how to add Mockito to the mix, so here it… Continue reading Adding support for Mockito to an Eclipse target definition
Modifying an Eclipse target definition to support JUnit
The Eclipse IDE has great tooling for writing and running JUnit tests. For most Java developers this tooling works without any issues, but things get a bit more complicated when working with Eclipse Plug-ins or OSGi bundles in general. The reason for this is that plug-in/bundle developers, including most Eclipse RCP developers, will be using… Continue reading Modifying an Eclipse target definition to support JUnit