[xwiki/xwiki-platform] f68b28: XWIKI-24665: Fix the lowered jacoco coverage of xw...
Branch: refs/heads/master Home: https://github.com/xwiki/xwiki-platform Commit: f68b280b0038b435f209bb4cc1093c498edc59c6 https://github.com/xwiki/xwiki-platform/commit/f68b280b0038b435f209bb4cc1093... Author: Vincent Massol <[email protected]> Date: 2026-08-06 (Thu, 06 Aug 2026) Changed paths: M xwiki-platform-core/xwiki-platform-xml/xwiki-platform-xml-script/pom.xml M xwiki-platform-core/xwiki-platform-xml/xwiki-platform-xml-script/src/main/java/org/xwiki/xml/script/XMLScriptService.java M xwiki-platform-core/xwiki-platform-xml/xwiki-platform-xml-script/src/test/java/org/xwiki/xml/script/XMLScriptServiceTest.java Log Message: ----------- XWIKI-24665: Fix the lowered jacoco coverage of xwiki-platform-xml-script Rewriting the catch block of XMLScriptService added instructions to code no unit test reached, which took the module's instruction ratio from 0.96 down to 0.95 and failed the jacoco check. That catch block could not have logged anything anyway: the logger is injected after construction, so a DOMImplementationRegistry failure raised a NullPointerException instead of a warning. The DOM implementation lookup now happens in initialize(), which runs once the logger is available, and a new test makes the lookup fail and asserts the warning. The module is at 100% instruction coverage, and the ratio is raised accordingly. Co-Authored-By: Claude Opus 5 (1M context) <[email protected]> To unsubscribe from these emails, change your notification settings at https://github.com/xwiki/xwiki-platform/settings/notifications
participants (1)
-
XWiki Notifications