This issue has been created
There are 8 updates, 1 comment.
 
 
XWiki Commons / cid:jira-generated-image-avatar-50744425-aad9-4874-a11b-8185081c9fda XCOMMONS-3846 Closed

Remove the JUnit 4 MockitoComponentManagerRule

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-dde5de18-f883-4d10-a2a1-3a4bf89a6bd6 Vincent Massol created this issue on 21/Oct/26 14:29
 
Summary: Remove the JUnit 4 MockitoComponentManagerRule
Issue Type: cid:jira-generated-image-avatar-50744425-aad9-4874-a11b-8185081c9fda Task
Affects Versions: 17.10.0
Assignee: Unassigned
Components: Development Issues only
Created: 21/Oct/26 14:29
Priority: cid:jira-generated-image-static-major-bf134a2e-4395-4413-a918-d95e16c43f3a Major
Reporter: Vincent Massol
Description:

The JUnit 4 MockitoComponentManagerRule has no user left in XWiki Commons, Rendering and Platform (its last user, MockitoOldcoreRule, is removed in XWIKI-25438). JUnit 5 tests use @ComponentTest / MockitoComponentManagerExtension instead.

Remove it, as a step towards removing JUnit 4 (and the JUnit Vintage engine) from the test classpath altogether. Extensions still having JUnit 4 tests using it need to migrate them to JUnit 5.

 
 

8 updates

 
cid:jira-generated-image-avatar-dde5de18-f883-4d10-a2a1-3a4bf89a6bd6 Changes by Vincent Massol on 21/Oct/26 14:29
 
Fix Version: 18.10.0-rc-1
Documentation in Release Notes: N/A
Documentation: N/A
Assignee: Vincent Massol
Component: Development Issues only - Test
Component: Development Issues only
Resolution: Fixed
Status: Open Closed
 
 

1 comment

 
cid:jira-generated-image-avatar-dde5de18-f883-4d10-a2a1-3a4bf89a6bd6 Vincent Massol on 21/Oct/26 14:38
 

Fixed by https://github.com/xwiki/xwiki-commons/pull/2086.