SuccessChanges

Summary

  1. tsk8: Implements REST tests for recent stories (details)
  2. tsk8: Fixes missing dataset location and adds cleanup scripts for REST (details)
  3. tsk32: Fix date format for testing (details)
  4. tsk32: Service tests for recent stories (details)
Commit 963a0ceb022e8212464cbae394883f25c98ad26d by josecampor31
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. These changes guarantee that the test data and database
values are interpreted consistently across environments.
The file was modifiedrest/src/test/java/es/uvigo/esei/microstories/rest/StoryResourceRestTest.java (diff)
Commit fd29ae1300e7590c2fdda44e86087c0f37eb206a by josecampor31
tsk8: Fixes missing dataset location and adds cleanup scripts for REST
tests
This commit fixes a dataset resolution error in the REST integration
tests for the
/api/microstories/recents endpoint. The Arquillian persistence extension
was unable to locate stories.xml, so 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 modifiedrest/src/test/java/es/uvigo/esei/microstories/rest/StoryResourceRestTest.java (diff)
Commit ce20d5ece7f1664ef9c21cb512f4066f7eb13867 by josecampor31
tsk32: Fix date format for testing
Date format fixed to pass tests due to time offset
The file was modifiedtests/src/main/java/es/uvigo/esei/dgss/teama/microstories/entities/StoriesDataset.java (diff)
Commit 135583d00073ff057412eb207f517ad5cd94e12b by josecampor31
tsk32: Service tests for recent stories
Added configuration and test for recent stories functionality
The file was addedservice/src/test/java/es/uvigo/esei/microstories/services/StoryServiceIntegrationTest.java (diff)
The file was addedservice/src/test/resources-wildfly-embedded-h2/cleanup-autoincrement-stories.sql (diff)
The file was modifiedservice/src/test/resources/test-persistence.xml (diff)