From 7ecb5456cc1968c70417e1506a54ba1551694b59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Z=C3=B6ller?= Date: Fri, 2 Jan 2026 18:03:23 +0100 Subject: [PATCH] Fix integration test: Add sourceFileFormat to test activity builder MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ActivityControllerIntegrationTest was failing because the helper method createTestActivity() didn't set the source_file_format field, which became required after migration V15. Added sourceFileFormat("FIT") to the Activity builder in the test helper. Test Results: - ✅ 128 tests passing - ✅ 0 failures - ✅ 0 errors - 4 tests skipped (expected) All integration tests now pass with Docker/Testcontainers. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- .../fitpub/controller/ActivityControllerIntegrationTest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/java/org/operaton/fitpub/controller/ActivityControllerIntegrationTest.java b/src/test/java/org/operaton/fitpub/controller/ActivityControllerIntegrationTest.java index 55fe7d2..47049de 100644 --- a/src/test/java/org/operaton/fitpub/controller/ActivityControllerIntegrationTest.java +++ b/src/test/java/org/operaton/fitpub/controller/ActivityControllerIntegrationTest.java @@ -304,6 +304,7 @@ class ActivityControllerIntegrationTest { .totalDistance(BigDecimal.valueOf(5000)) .totalDurationSeconds(1800L) .elevationGain(BigDecimal.valueOf(100)) + .sourceFileFormat("FIT") .build(); } }