-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bugfix #7827 - Fixed incorrect status code and error message when rat…
…e own event. (#7855) * Added restriction to rate own event in method rateEvent() in EventServiceImpl; Replaced restTemplate to userRepo for finding userByEmail in rateEvent() method in EventServiceImpl; Added error message constant 'Organizer has no rights to rate the own event' into ErrorMessages class; Created missed unit tests for rateEvent() method for EventServiceImpl class; Added method getEventNotStartedYet() for creating not started event yet into ModelUtils class; * Fixed code formatting according to formatter-maven-plugin cause build faided by CI/CD; * Refactored unit tests for rateEvent() method in EventServiceImplTests according to sonar issues; * Additional refactoring according to sonar issue documentation; * Removed underscores from test method names in EventServiceImplTest; * Replaced wildcard import to separated; * Added word 'Test' to names for each test in EventServiceImplTest;
- Loading branch information
1 parent
6d2b3c4
commit f54b81b
Showing
4 changed files
with
111 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters