[
https://issues.jboss.org/browse/JBIDE-14315?page=com.atlassian.jira.plugi...
]
Max Rydahl Andersen commented on JBIDE-14315:
---------------------------------------------
Cool - not sure why I didn't spot that big blue attachement yesterday :)
WDYT about the issue of a possible race condition on this static variable when running
concurrent tests ?
Is there no way in Mockito to refer to the "current configuration" to set it per
mockito 'instance' instead of globally ?
handle mockito osgi unfriendly API
----------------------------------
Key: JBIDE-14315
URL:
https://issues.jboss.org/browse/JBIDE-14315
Project: Tools (JBoss Tools)
Issue Type: Sub-task
Components: locus
Reporter: Max Rydahl Andersen
Assignee: Paul Richardson
Fix For: 4.1.0.Beta1
Attachments: 0001-Allow-the-cache-option-to-be-changed-in-the-default-.patch
The current approach in Locus to add org.mockito.MockitoConfiguration makes our bundle a
very custom one, not just a rebundle.
Need to see if we can get an updated mockito release out or some other way disable
mockito's caching behavior.
The current fix also has multithreading issues since two tests could be running and be
toggling mockito classcaching on and off and trigger a racecondition.
--
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