Add test infrastructure and common module

- Testcontainers 2.0.4 (PostgreSQL) for repository integration tests
- AbstractIntegrationTest base class with shared Postgres container
- application-test.yml for test profile
- Common module: ApiResponse/ApiError envelopes, GlobalExceptionHandler,
  ResourceNotFoundException, ConflictException, ValidationException,
  HouseholdContext record

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-01 21:05:17 +02:00
parent 10b4d567d3
commit 866603711d
12 changed files with 166 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
spring:
datasource:
url: jdbc:tc:postgresql:16-alpine:///mealprep
username: mealprep
password: mealprep
jpa:
open-in-view: false
hibernate:
ddl-auto: validate
flyway:
enabled: true
locations: classpath:db/migration