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

Andre Dietisheim (JIRA) issues at jboss.org
Thu Aug 7 12:42:29 EDT 2014


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

Andre Dietisheim commented on JBIDE-18053:
------------------------------------------

[~phantomjinx] The use with files is only an example. I am also using the approach where I create tmp-files and kick them off afterwards. There are plenty of cases where you cannot rely on interfaces, you need more power than proxies. Mockito has such means but afaik powermock goes far beyong what mockito has to offer. So far mockito was fully sufficient to me. Up to [~jcantrill] to weigh the benefits/costs. Can you elaborate? 

[~nickboldt] I dont think that there's any need for the additional testng (we use junit) and easymock (comparable to mockito, no benefit) features.

> 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 repo: https://github.com/jayway/powermock
>   JBoss mirror: Unknown
>   Sources: Unknown
>   Affected projects:
>   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}
>   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