SuccessChanges

Summary

  1. tsk69: Implements add/remove favorite story functionality in service (details)
Commit 8b4e841317e2869939c363bf97c24fa8aab6cb54 by devpablogg
tsk69: Implements add/remove favorite story functionality in service
layer
This commit implements the service-layer methods to allow users to add
and remove stories from their favorites. It introduces addFavorite and
removeFavorite in StoryService, including proper validation for story
existence and user authorization. Integration tests were added to verify
successful addition and removal, as well as error cases for non-existent
stories and unauthorized access. The DBUnit dataset
stories-new-favorited.xml was created to support the tests.
The file was addedtests/src/main/resources/datasets/stories-new-favorited.xml (diff)
The file was modifiedservice/src/main/java/es/uvigo/esei/microstories/services/StoryService.java (diff)
The file was modifiedservice/src/test/java/es/uvigo/esei/microstories/services/StoryServiceIntegrationTest.java (diff)