[xwiki/xwiki-platform] 57052b: [Misc] Use assertEquals/assertNotEquals instead of...
Branch: refs/heads/claude/vigilant-dirac-d9tl91 Home: https://github.com/xwiki/xwiki-platform Commit: 57052b2d6472c1a2ae71100331435df8858b1206 https://github.com/xwiki/xwiki-platform/commit/57052b2d6472c1a2ae71100331435... Author: Vincent Massol <[email protected]> Date: 2026-07-12 (Sun, 12 Jul 2026) Changed paths: M xwiki-platform-core/xwiki-platform-model/xwiki-platform-model-api/src/test/java/org/xwiki/model/reference/EntityReferenceTest.java M xwiki-platform-core/xwiki-platform-model/xwiki-platform-model-api/src/test/java/org/xwiki/model/reference/RegexEntityReferenceTest.java Log Message: ----------- [Misc] Use assertEquals/assertNotEquals instead of boolean assertions in model-api tests (SonarCloud java:S5785) Mechanical, behaviour-preserving cleanup of SonarCloud rule java:S5785 in the xwiki-platform-model-api module (27 issues across 2 test files). Using a dedicated equality assertion reports the actual and expected values on failure instead of just "expected: <true> but was: <false>". For RegexEntityReference the equals() override is asymmetric (a regex reference matches a concrete one, not vice-versa), so the original receiver is kept as the first argument to preserve the tested direction. Co-Authored-By: Vincent Massol <[email protected]> To unsubscribe from these emails, change your notification settings at https://github.com/xwiki/xwiki-platform/settings/notifications
participants (1)
-
XWiki Notifications