SuccessChanges

Summary

  1. tsk8: Implements REST tests for recent stories (details)
Commit 7e92cf4a2fc9bab57459b5e5730e4a5224d0c172 by devpablogg
tsk8: Implements REST tests for recent stories
This commit introduces REST integration tests for the
`/api/microstories/recents` endpoint, verifying that the service
correctly retrieves and orders the 6 most recent stories. To ensure
consistent results, the timestamp handling in `StoriesDataset` and the
XML datasets was adjusted to align with DBUnit expectations. The dataset
files now use SQL-style timestamps (`yyyy-MM-dd HH:mm:ss`), and
`StoriesDataset` uses
`LocalDateTime` instead of `Instant.parse()` to avoid timezone
discrepancies. The dataset file was moved to the datasets/ directory,
matching the framework’s default lookup path. Additionally, a
cleanup.sql script was introduced to clear test tables between
executions, ensuring isolation and preventing residual data issues.
The file was addedrest/src/test/java/es/uvigo/esei/microstories/rest/GenericTypes.java (diff)
The file was addedtests/src/main/resources/scripts/cleanup.sql (diff)
The file was modifiedservice/src/main/java/es/uvigo/esei/microstories/mappers/StoryMapper.java (diff)
The file was addedrest/src/test/java/es/uvigo/esei/microstories/rest/StoryResourceRestTest.java (diff)
The file was modifiedtests/src/main/java/es/uvigo/esei/dgss/teama/microstories/entities/StoriesDataset.java (diff)
The file was removedtests/src/main/resources/stories.xml (diff)
The file was modifiedtests/src/main/java/es/uvigo/esei/dgss/teama/microstories/entities/IsEqualToStory.java (diff)
The file was addedtests/src/main/resources/datasets/stories.xml (diff)
The file was addedrest/src/test/java/es/uvigo/esei/microstories/rest/ResourceUnitTestSuite.java (diff)
The file was modifiedrest/src/test/resources/web.xml (diff)
The file was modifiedrest/src/test/resources/beans.xml (diff)
The file was modifiedrest/src/test/resources/test-persistence.xml (diff)