[jbosstools-issues] [JBoss JIRA] (JBIDE-18053) Add Powermock to the target platform

Jeff Cantrill (JIRA) issues at jboss.org
Wed Aug 6 15:26:30 EDT 2014


    [ https://issues.jboss.org/browse/JBIDE-18053?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12990892#comment-12990892 ] 

Jeff Cantrill commented on JBIDE-18053:
---------------------------------------

In summary of my IRC conversation with [~mickael_istria] conversation, was able to add powermock-osgi to satisfy my requires by updating https://github.com/jbosstools/jbosstools-target-platforms/blob/4.40.x/jbosstools/multiple/jbosstools-multiple.target with:


<location includeAllPlatforms="false" includeMode="slicer" type="InstallableUnit" includeSource="true">
 <repository location="http://powermock-osgi.googlecode.com/svn/updateSite/1.5.4.1/"/>
     <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"/>
    </location>



> 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
>
> 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 repo: https://github.com/jayway/powermock
>   JBoss mirror: Unknown
>   Sources: Unknown
>   Affected projects:
>   Include in JBDS: Yes|No
>   Type of dependency: testing
>   List of bundles added/removed:
>   If applicable:
>     non-p2 repository:
>     non-p2 ids:



--
This message was sent by Atlassian JIRA
(v6.2.6#6264)


More information about the jbosstools-issues mailing list