snow
(Francis Bazzenkya)
March 28, 2025, 4:13pm
1
i asked for a review in comment two days back. but no one has did it. and its going to weekend. and no the sight are muted. i ant change them.
view the screenshot to see what am meaning.
thank you
master
← snowvirus:TRUNK-49880-spring-DI
opened 07:01PM - 26 Mar 25 UTC
TRUNK-4988: Refactor MessageService to Use Spring Dependency Injection
## Des… cription of what I changed
Implemented the configureMessageService(MessageSender, MessagePreparator) method to configure MessageService using Spring’s Dependency Injection.
Updated getMessageService() to rely on Spring DI and removed the manual setting of dependencies.
Refactored MessageService initialization for cleaner, more maintainable code that follows DI principles.
Added a unit test to verify that the configureMessageService() method works as expected.
## Issue I worked on
see [This](https://openmrs.atlassian.net/browse/TRUNK-4988)
## Checklist: I completed these to help reviewers :)
- [x] My IDE is configured to follow the [**code style**](https://wiki.openmrs.org/display/docs/Java+Conventions) of this project.
- [x] I have **added tests** to cover my changes. (If you refactored
existing code that was well tested you do not have to add tests)
- [x] I ran `mvn clean package` right before creating this pull request and
added all formatting changes to my commit.
- [x] All new and existing **tests passed**.
- [x] My pull request is **based on the latest changes** of the master branch.
No? Unsure? -> execute command `git pull --rebase upstream master`
