[jbosstools-issues] [JBoss JIRA] (JBIDE-12971) Add mockito to the TP

Mickael Istria (JIRA) issues at jboss.org
Thu Jan 2 13:37:33 EST 2014


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

Mickael Istria commented on JBIDE-12971:
----------------------------------------

Assuming you go for a fragment contributing to Mockito bundles:
You'd have tweak the test executor (tycho-surefire-plugin in pom.xml, Launch Configuration in IDE) to make sure the fragment is added to the test runtime. If it's there, then Mockito would be able to see the configuration.
Your tests don't need to be fragments (I actually believe tests as fragments are not a good idea and are worse than tests as regular bundle).

Assuming we can add a "registered" buddy policy to Orbit's Mockito:
You'll need a single bundle contributing to this buddy policy (the one holding the configuration) and your test bunldes or fragments could add a dependency on it to make sure it's part of the test runtime so Mockite could find it.
                
> Add mockito to the TP
> ---------------------
>
>                 Key: JBIDE-12971
>                 URL: https://issues.jboss.org/browse/JBIDE-12971
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: build
>    Affects Versions: 4.0.0.Beta1
>            Reporter: Andre Dietisheim
>            Assignee: Andre Dietisheim
>             Fix For: 4.2.0.Alpha2
>
>
> It would be great if we could use mockito (http://code.google.com/p/mockito/) in our tests. We would have to add it to our target platform (TP) for our plugins to use it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list