feat(tests): add UserGetByIdContainerTest with PostgreSQL integration#60
Conversation
There was a problem hiding this comment.
Pull request overview
Adds a new Spring Boot + Testcontainers integration test to validate the GET /random-users/{id} endpoint against a real PostgreSQL instance, and updates Maven test dependencies to support container-based testing.
Changes:
- Introduce
UserGetByIdContainerTestusing@SpringBootTest+TestRestTemplate+PostgreSQLContainer. - Add Testcontainers (BOM + JUnit Jupiter + PostgreSQL module) and Spring Boot Testcontainers support to
pom.xml.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
src/test/java/com/xpeho/spring_boot_java_random_user/presentation/UserGetByIdContainerTest.java |
New PostgreSQL Testcontainers-based integration test covering 200/404 for GET /random-users/{id}. |
pom.xml |
Adds Testcontainers dependency management and test-scoped dependencies required for the new container test. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.





No description provided.