UnstableChanges

Summary

  1. TSK12: Añadir funcionalidad para recuperar relatos por texto (EJB) (details)
  2. tsk8: Implements REST tests for recent stories (details)
  3. tsk8: Fixes missing dataset location and adds cleanup scripts for REST (details)
  4. tsk:12 correction of tests (details)
Commit 21ca767de17ccc36cad1cb87d9e2bffd37b2a60e by 43324098+sad8787
TSK12: Añadir funcionalidad para recuperar relatos por texto (EJB)
Se implementa en el servicio la búsqueda de relatos que contienen un
texto específico. La consulta permite la paginación para optimizar el
rendimiento y limitar los resultados.
The file was addedrest/src/test/resources/datasets/stories.xml (diff)
Commit 8c29da133ee897d65cfcc36be3e2ba26b9ef7e48 by 43324098+sad8787
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 5cb81589b6a8855c434c5e8a8b015a2436bb1885 by 43324098+sad8787
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 eb41f89a19834aed1f8e12c5ad04082ebd16d749 by 43324098+sad8787
tsk:12 correction of tests
The file was modifiedrest/src/test/java/es/uvigo/esei/microstories/rest/StoryResourceRestTest.java (diff)
The file was modifiedservice/src/test/java/es/uvigo/esei/microstories/services/StoryServiceIntegrationTest.java (diff)