File tree Expand file tree Collapse file tree 5 files changed +7
-7
lines changed
main/kotlin/pro/qyoga/app/therapist/appointments/core/schedule/settings
testFixtures/kotlin/pro/qyoga/tests
pages/therapist/appointments/google_calendars
test/kotlin/pro/qyoga/tests/clients/api Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1- package pro.qyoga.app.therapist.appointments.core.schedule
1+ package pro.qyoga.app.therapist.appointments.core.schedule.settings
22
33import org.springframework.http.HttpStatus
44import org.springframework.security.core.annotation.AuthenticationPrincipal
@@ -41,7 +41,7 @@ class GoogleCalendarSettingsController(
4141
4242 fun updateCalendarSettingsPath (googleAccount : GoogleAccountRef , calendarId : String ): String =
4343 UPDATE_CALENDAR_SETTINGS_PATH
44- .replace(" {googleAccount}" , googleAccount.id? .toString() ? : " " )
44+ .replace(" {googleAccount}" , googleAccount.id.toString())
4545 .replace(" {calendarId}" , calendarId)
4646
4747 }
Original file line number Diff line number Diff line change 1- package pro.qyoga.app.therapist.appointments.core.schedule
1+ package pro.qyoga.app.therapist.appointments.core.schedule.settings
22
33import org.springframework.web.servlet.ModelAndView
44import pro.qyoga.i9ns.calendars.google.views.GoogleAccountCalendarsSettingsView
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ import org.jsoup.nodes.Document
66import org.springframework.security.oauth2.core.endpoint.OAuth2AuthorizationResponse
77import org.springframework.test.web.reactive.server.WebTestClient
88import org.springframework.web.reactive.function.BodyInserters.fromValue
9- import pro.qyoga.app.therapist.appointments.core.schedule.GoogleCalendarSettingsController
9+ import pro.qyoga.app.therapist.appointments.core.schedule.settings. GoogleCalendarSettingsController
1010import pro.qyoga.i9ns.calendars.google.model.GoogleAccountRef
1111import pro.qyoga.tests.platform.spring.web_test_client.getBodyAsString
1212import pro.qyoga.tests.platform.spring.web_test_client.redirectLocation
Original file line number Diff line number Diff line change 11package pro.qyoga.tests.fixture.test_apis
22
33import org.springframework.stereotype.Component
4- import pro.qyoga.app.therapist.appointments.core.schedule.GoogleCalendarSettingsController
4+ import pro.qyoga.app.therapist.appointments.core.schedule.settings. GoogleCalendarSettingsController
55import pro.qyoga.core.users.therapists.TherapistRef
66import pro.qyoga.i9ns.calendars.google.GoogleCalendarsService
77import pro.qyoga.i9ns.calendars.google.model.GoogleAccount
@@ -18,7 +18,7 @@ class GoogleCalendarTestApi(
1818
1919 fun getGoogleCalendarsSettings (therapistRef : TherapistRef ): List <GoogleAccountCalendarsSettingsView > {
2020 return googleCalendarSettingsController.getGoogleCalendarSettingsComponent(
21- idOnlyUserDetails(therapistRef.id!! )
21+ idOnlyUserDetails(therapistRef.id)
2222 ).accounts
2323 }
2424
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ package pro.qyoga.tests.pages.therapist.appointments.google_calendars
22
33import io.kotest.matchers.Matcher
44import org.jsoup.nodes.Element
5- import pro.qyoga.app.therapist.appointments.core.schedule.GoogleCalendarSettingsController
5+ import pro.qyoga.app.therapist.appointments.core.schedule.settings. GoogleCalendarSettingsController
66import pro.qyoga.tests.assertions.haveAttributeValue
77import pro.qyoga.tests.platform.html.Component
88import pro.qyoga.tests.platform.kotest.all
You can’t perform that action at this time.
0 commit comments