SuccessChanges

Summary

  1. Marks a story as favorite for some user in DB scripts (details)
  2. tsk42 Adds story delete support to EJB (details)
Commit 83023cf2c3ecc50238c20cea85ccaaa2c329c9dd by aggarcia3
Marks a story as favorite for some user in DB scripts
This comes in handy for testing that deletions are cascaded properly,
and might also be useful for designing views and other features.
The file was modifiedadditional-material/db/microstories-mysql.data.sql (diff)
The file was modifiedadditional-material/db/microstories-mysql.full.sql (diff)
Commit eed6ae64e8552405d7f4b526421493ca1ca093be by aggarcia3
tsk42 Adds story delete support to EJB
This commit adds a method to delete stories to the corresponding EJB.
This method requires that the user is authenticated and has the default
USER role. Only stories made by the logged in user can be deleted.
Unit tests were added for this method, too. Two new Arquillian datasets
were also added to check that the story deletion test changes the
database state as expected, and dependent entities are handled
appropriately.
The file was addedtests/src/main/java/es/uvigo/esei/dgss/teamB/microstories/service/util/security/UserRoleCaller.java (diff)
The file was addedtests/src/main/resources/datasets/stories-delete.xml (diff)
The file was modifiedservice/src/test/java/es/uvigo/esei/dgss/teamB/microstories/service/StoryServiceTest.java (diff)
The file was modifiedservice/src/main/java/es/uvigo/esei/dgss/teamB/microstories/service/StoryService.java (diff)
The file was addedtests/src/main/resources/datasets/story-visits-and-favorites.xml (diff)