[xwiki/xwiki-platform] f5990f: [Misc] Use assertEquals/assertNotEquals instead of...
Branch: refs/heads/claude/vigilant-dirac-d5hd3s Home: https://github.com/xwiki/xwiki-platform Commit: f5990fddfb5a6812532a923c6c251c31de6cf78d https://github.com/xwiki/xwiki-platform/commit/f5990fddfb5a6812532a923c6c251... Author: Vincent Massol <[email protected]> Date: 2026-07-12 (Sun, 12 Jul 2026) Changed paths: M xwiki-platform-core/xwiki-platform-bridge/src/test/java/org/xwiki/bridge/ActionExecutingEventTest.java M xwiki-platform-core/xwiki-platform-eventstream/xwiki-platform-eventstream-api/src/test/java/org/xwiki/eventstream/AbstractRecordableEventDescriptorTest.java M xwiki-platform-core/xwiki-platform-eventstream/xwiki-platform-eventstream-api/src/test/java/org/xwiki/eventstream/SimpleEventQueryTest.java Log Message: ----------- [Misc] Use assertEquals/assertNotEquals instead of boolean assertions in bridge and eventstream-api tests (SonarCloud java:S5785) Replace assertTrue(a.equals(b))/assertFalse(a.equals(b)) and assertTrue(x == 0)/assertTrue(x != 0) with assertEquals/assertNotEquals so that a failure reports the actual and expected values. The receiver is kept as the first argument to preserve the exact equals() direction (matters for the cross-type comparison against ActionExecutedEvent). 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