Fix test errors #31

Merged
McPringle merged 3 commits from fix/test-errors into main 2026-05-05 11:34:24 +02:00
Showing only changes of commit cd3687683c - Show all commits

View file

@ -27,12 +27,16 @@ import static org.junit.jupiter.api.Assertions.*;
/** /**
* Manual test for ActivityImageService. * Manual test for ActivityImageService.
* These tests are disabled by default and should only be run manually. * These tests are disabled by default and should only be run manually.
*
* To run this test manually:
* mvn test -Dtest=ActivityImageServiceTest
*/ */
@SpringBootTest(properties = { @SpringBootTest(properties = {
"fitpub.image.osm-tiles.enabled=true" "fitpub.image.osm-tiles.enabled=true"
}) })
@ActiveProfiles("test") @ActiveProfiles("test")
@Import(TestcontainersConfiguration.class) @Import(TestcontainersConfiguration.class)
@Disabled("Manual test - run explicitly when needed")
class ActivityImageServiceTest { class ActivityImageServiceTest {
@Autowired @Autowired
@ -55,7 +59,6 @@ class ActivityImageServiceTest {
* mvn test -Dtest=ActivityImageServiceTest#testGenerateActivityImage_Manual * mvn test -Dtest=ActivityImageServiceTest#testGenerateActivityImage_Manual
*/ */
@Test @Test
@Disabled("Manual test - run explicitly when needed")
@DisplayName("Generate activity image from test FIT file") @DisplayName("Generate activity image from test FIT file")
void testGenerateActivityImage_Manual() throws Exception { void testGenerateActivityImage_Manual() throws Exception {
// Load test FIT file // Load test FIT file