Cover the chat-routing propagation that broke assignLoanOfficer

TestSecurityService
Ya
6 Agosti 2026, 20:56 UTC
Mwandishi
Kamo
Ahadi ya
1e59b9f

assignLoanOfficer gained a step that looks up the loan's source lead to reroute the borrower's open public-chat session. That lookup runs a JPQL query through the service's EntityManager, which is @PersistenceContext field-injected and so absent from the constructor this unit test builds the service with — the test NPE'd on a null em from the moment the branch landed, untested. Wire em the way Spring does and cover the branch itself: routes to the new officer for a portal-sourced loan, publishes nothing for a hand-entered loan with no source lead, and publishes nothing when the assignment is cleared.

Mabadiliko yote

Je, unaona nini kuhusu usafiri?

Kila moja ya hizi updates ardhi katika nafasi yako ya kazi moja kwa moja. Kuanza bure na kuangalia kukua wiki baada ya wiki.

Kuwa Huru MileleMtazamo wa bei