DataTransferNotificationTest.ktregisterRecipientsTest()Uses a helper testAudit(uploadUserId, byUserId, eventType, observerIds, expected) that:
PFUserDO objects for uploader, the user performing the action, and observersThe invariant: you never get notified about your own actions — only other people's activity triggers notifications.
This is a unit test (no database, no JCR, no Spring) that tests just the notification recipient logic. The testAudit helper directly calls the notification method with arranged inputs. The actual DataTransferNotificationJob + mail rendering is tested in DataTransferNotificationMailTest. This separation makes the notification logic test fast (milliseconds vs. seconds for integration tests).
Pure unit test for the observer notification recipient logic — verifies who gets notified for each event type. Unlike DataTransferNotificationMailTest (which tests the full mail pipeline), this test isolates the recipient selection algorithm. Does not extend
AbstractTestBase— runs without Spring context, making it fast.