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 a372d5194341cd7f1915c1ed543f3a1366600d95 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
Commit 3cfe6783446cf4ad88042f1e6c1981504176071b 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
Commit 3434e159ddb3fa052b028619d0764dde13260602 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
Commit 6a3233c33999aa2e98f7ac7f36052a009891095f by 43324098+sad8787
tsk:12 correction of tests
The file was modifiedrest/src/test/java/es/uvigo/esei/microstories/rest/StoryResourceRestTest.java