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