Skip to content
Automatically exported from
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Powermock is a popular mocking framework ( which can be used to mock classes or methods which otherwise can not be mocked. This project is about to enable its use in OSGI environments especially using it for testing Eclipse Plugins.

How to use

Simply add one of the desired features to your target platform using the latest update site.

How to build

powermock-osgi> mvn clean install
powermock-osgi/p2> mvn clean install

Latest Version

The latest version is based on 1.5.6 Powermock. Update site: . See the release notes.


I tested ONLY the Junit+Mockito+Powermock feature. The others should also work, but I did not test them.

Useful Trick

Known limitation is that Powermock can play only with classes in exported packages, but it is usually enough. It is possible however to export some packages only for usage of powermock using the x-friends manifest entry. See

You can’t perform that action at this time.