From 9a3f80201793efb575e701bd2583dbd89d2e7ab4 Mon Sep 17 00:00:00 2001 From: Evgeny Date: Sun, 24 Mar 2024 11:59:07 +0100 Subject: [PATCH] fix test --- .../platform/intervalsicu/IntervalsApiClient.kt | 6 ------ .../tp2intervals/config/MockIntervalsApiClient.groovy | 4 ++-- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/boot/src/main/kotlin/org/freekode/tp2intervals/infrastructure/platform/intervalsicu/IntervalsApiClient.kt b/boot/src/main/kotlin/org/freekode/tp2intervals/infrastructure/platform/intervalsicu/IntervalsApiClient.kt index 87d7edf2..b66184c8 100644 --- a/boot/src/main/kotlin/org/freekode/tp2intervals/infrastructure/platform/intervalsicu/IntervalsApiClient.kt +++ b/boot/src/main/kotlin/org/freekode/tp2intervals/infrastructure/platform/intervalsicu/IntervalsApiClient.kt @@ -22,12 +22,6 @@ import org.springframework.web.multipart.MultipartFile ) interface IntervalsApiClient { - @PostMapping("/api/v1/athlete/{athleteId}/workouts") - fun createWorkout( - @PathVariable athleteId: String, - @RequestBody createWorkoutRequestDTO: CreateWorkoutRequestDTO - ) - @PostMapping("/api/v1/athlete/{athleteId}/workouts/bulk") fun createWorkouts( @PathVariable athleteId: String, diff --git a/boot/src/test/groovy/org/freekode/tp2intervals/config/MockIntervalsApiClient.groovy b/boot/src/test/groovy/org/freekode/tp2intervals/config/MockIntervalsApiClient.groovy index 891a846a..bee5486e 100644 --- a/boot/src/test/groovy/org/freekode/tp2intervals/config/MockIntervalsApiClient.groovy +++ b/boot/src/test/groovy/org/freekode/tp2intervals/config/MockIntervalsApiClient.groovy @@ -10,6 +10,7 @@ import org.freekode.tp2intervals.infrastructure.platform.intervalsicu.folder.Fol import org.freekode.tp2intervals.infrastructure.platform.intervalsicu.workout.CreateEventRequestDTO import org.freekode.tp2intervals.infrastructure.platform.intervalsicu.workout.CreateWorkoutRequestDTO import org.freekode.tp2intervals.infrastructure.platform.intervalsicu.workout.IntervalsEventDTO +import org.jetbrains.annotations.NotNull import org.springframework.web.multipart.MultipartFile class MockIntervalsApiClient implements IntervalsApiClient { @@ -21,8 +22,7 @@ class MockIntervalsApiClient implements IntervalsApiClient { } @Override - void createWorkout(String athleteId, CreateWorkoutRequestDTO createWorkoutRequestDTO) { - + void createWorkouts(String athleteId, List requests) { } @Override