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

Paul Richardson (JIRA) issues at jboss.org
Thu Aug 7 10:40:29 EDT 2014


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

Paul Richardson commented on JBIDE-18053:
-----------------------------------------

[~nickboldt]
Designer has little need for powermock at the moment since our tests have moved away from testing classes and towards testing interfaces. Consequently, mockito has served as the prime library for this.

Looking at the specific use case of mocking a file, our tests have tended to create a temp file and blow it away afterwards. Not saying this would be appropriate for this use case but has allowed Designer to avoid needing to mock the File class.

> 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