]
Mickael Istria commented on JBIDE-18053:
----------------------------------------
Note that we've created specific bundle id for mockito and other stuff we repackaged
as part of Locus to anticipate this situation. People can then select to use either the
Locus or the PowerMock version of Mockito, and hope it will work.
But I agree checking IS test with the suggested TP could help. [~phantomjinx] [~pleacu] Is
this something you can check?
Add Powermock to the target platform
------------------------------------
Key: JBIDE-18053
URL:
https://issues.jboss.org/browse/JBIDE-18053
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Components: build
Affects Versions: 4.2.x
Reporter: Jeff Cantrill
Assignee: Nick Boldt
Fix For: 4.2.0.CR1
*Reason:* To improving testing by allowing the stubbing of scenerios like "new
File(path).exists()" which require bytecode modifications in order to accomplish.
Example of intended use:
https://gist.github.com/jcantrill/fd83c27d3fc542742ec7
*License and owner:* Apache 2.0 /
https://github.com/jayway
*Original p2 repo:*
http://powermock-osgi.googlecode.com/svn/updateSite/1.5.4.1/
*JBoss mirror:*
http://download.jboss.org/jbosstools/updates/requirements/powermock/1.5.4.1/
*Sources:*
https://code.google.com/p/powermock-osgi/ ,
http://powermock-osgi.googlecode.com/svn/trunk/
*Affected projects:* OpenShift tests
*Include in JBDS:* No
*Type of dependency:* testing
*List of bundles added/removed:*
{code}
+ <unit id="org.powermock.mockito-junit.feature.feature.group"
version="1.5.4.1"/>
+ <unit id="org.objenesis" version="2.1.0"/>
+ <unit id="javassist" version="3.18.1.GA"/>
{code}
*p2diff report:*
{code}
mistria@mistria--rh:~/git/jbosstools-target-platforms/jbosstools/multiple$
~/git/p2diff/org.eclipse.equinox.p2.example.p2diff.packaging/target/products/org.eclipse.equinox.p2.example.p2diff.product/linux/gtk/x86_64/p2diff
http://download.jboss.org/jbosstools/targetplatforms/jbosstoolstarget/4.4...
file:$(pwd)/target/jbosstools-multiple.target.repo/
> org.mockito.mockito-core [1.9.5]
> javassist [3.18.1.GA]
> org.powermock.powermock-api-support [1.5.4]
> org.powermock.powermock-reflect [1.5.4]
> org.powermock.mockito-junit.feature.feature.jar [1.5.4.1]
> org.junit [4.11.0]
> org.powermock.powermock-api-mockito [1.5.4]
> org.powermock.powermock-module-junit4-common [1.5.4]
> org.powermock.powermock-module-junit3 [1.5.4]
> org.powermock.powermock-module-junit4 [1.5.4]
> org.powermock.powermock-core [1.5.4]
> org.hamcrest.hamcrest-core [1.3.0]
> org.powermock.mockito-junit.feature.feature.group [1.5.4.1]
> org.powermock.powermock-classloading-base [1.5.4]
> org.powermock.powermock-module-junit4-legacy [1.5.4]
> org.objenesis [2.1.0]
=== Summary ===
file:/home/mistria/git/jbosstools-target-platforms/jbosstools/multiple/target/jbosstools-multiple.target.repo/
contains 16 unique IUs
{code}