[xwiki/xwiki-platform] d5ac2b: [Misc] Use assertEquals/assertNotEquals instead of...
Branch: refs/heads/master Home: https://github.com/xwiki/xwiki-platform Commit: d5ac2bd37e0c83dda92d7b20bb099c7fdc3da432 https://github.com/xwiki/xwiki-platform/commit/d5ac2bd37e0c83dda92d7b20bb099... Author: Vincent Massol <[email protected]> Date: 2026-07-15 (Wed, 15 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. To unsubscribe from these emails, change your notification settings at https://github.com/xwiki/xwiki-platform/settings/notifications
participants (1)
-
XWiki Notifications