From a2db6a02e092bd1327b30677d64e01d4ceb72941 Mon Sep 17 00:00:00 2001 From: giacomo accursi Date: Tue, 28 Feb 2023 10:44:04 +0100 Subject: [PATCH] refactor: rename package entities to entity --- .../kotlin/application/SurgeryBookingController.kt | 2 +- src/main/kotlin/application/SurgeryBookingManager.kt | 2 +- .../deserializer/SurgeryBookingDeserializer.kt | 2 +- .../deserializer/SurgeryBookingJsonDeserializer.kt | 12 ++++++------ .../kotlin/{entities => entity}/SurgeryBooking.kt | 2 +- .../digitaltwin/DigitalTwinSurgeryBookingManager.kt | 2 +- .../usecase/repository/SurgeryBookingRepository.kt | 2 +- .../{entities => entity}/SurgeryBookingTest.kt | 2 +- 8 files changed, 13 insertions(+), 13 deletions(-) rename src/main/kotlin/{entities => entity}/SurgeryBooking.kt (99%) rename src/test/kotlin/{entities => entity}/SurgeryBookingTest.kt (98%) diff --git a/src/main/kotlin/application/SurgeryBookingController.kt b/src/main/kotlin/application/SurgeryBookingController.kt index 77f1e46f..f5a78236 100644 --- a/src/main/kotlin/application/SurgeryBookingController.kt +++ b/src/main/kotlin/application/SurgeryBookingController.kt @@ -8,7 +8,7 @@ package application -import entities.SurgeryBooking +import entity.SurgeryBooking import usecase.repository.SurgeryBookingRepository /** * A controller for surgery booking. diff --git a/src/main/kotlin/application/SurgeryBookingManager.kt b/src/main/kotlin/application/SurgeryBookingManager.kt index 2b1c42c3..3f2c5ab4 100644 --- a/src/main/kotlin/application/SurgeryBookingManager.kt +++ b/src/main/kotlin/application/SurgeryBookingManager.kt @@ -8,7 +8,7 @@ package application -import entities.SurgeryBooking +import entity.SurgeryBooking /** * Generic manager of a Medical Instrument. diff --git a/src/main/kotlin/application/presenters/deserializer/SurgeryBookingDeserializer.kt b/src/main/kotlin/application/presenters/deserializer/SurgeryBookingDeserializer.kt index 0c9a9657..fab745d1 100644 --- a/src/main/kotlin/application/presenters/deserializer/SurgeryBookingDeserializer.kt +++ b/src/main/kotlin/application/presenters/deserializer/SurgeryBookingDeserializer.kt @@ -8,7 +8,7 @@ package application.presenters.deserializer -import entities.SurgeryBooking +import entity.SurgeryBooking /** * Interface of a generic data deserializer. diff --git a/src/main/kotlin/application/presenters/deserializer/SurgeryBookingJsonDeserializer.kt b/src/main/kotlin/application/presenters/deserializer/SurgeryBookingJsonDeserializer.kt index 1aa4c242..073bc980 100644 --- a/src/main/kotlin/application/presenters/deserializer/SurgeryBookingJsonDeserializer.kt +++ b/src/main/kotlin/application/presenters/deserializer/SurgeryBookingJsonDeserializer.kt @@ -15,12 +15,12 @@ import application.presenters.deserializer.SurgeryBookingJsonKeys.SURGERY_ID import application.presenters.deserializer.SurgeryBookingJsonKeys.SURGERY_TYPE import com.google.gson.Gson import com.google.gson.JsonObject -import entities.HealthProfessionalID -import entities.HealthcareUserID -import entities.SurgeryBooking -import entities.SurgeryDateTime -import entities.SurgeryID -import entities.SurgeryType +import entity.HealthProfessionalID +import entity.HealthcareUserID +import entity.SurgeryBooking +import entity.SurgeryDateTime +import entity.SurgeryID +import entity.SurgeryType import java.time.LocalDateTime import java.time.format.DateTimeFormatter diff --git a/src/main/kotlin/entities/SurgeryBooking.kt b/src/main/kotlin/entity/SurgeryBooking.kt similarity index 99% rename from src/main/kotlin/entities/SurgeryBooking.kt rename to src/main/kotlin/entity/SurgeryBooking.kt index 61bdc5d5..a3366ce4 100644 --- a/src/main/kotlin/entities/SurgeryBooking.kt +++ b/src/main/kotlin/entity/SurgeryBooking.kt @@ -6,7 +6,7 @@ * https://opensource.org/licenses/MIT. */ -package entities +package entity import java.time.LocalDateTime diff --git a/src/main/kotlin/infrastructure/digitaltwin/DigitalTwinSurgeryBookingManager.kt b/src/main/kotlin/infrastructure/digitaltwin/DigitalTwinSurgeryBookingManager.kt index 0d43fdf7..7bfb2746 100644 --- a/src/main/kotlin/infrastructure/digitaltwin/DigitalTwinSurgeryBookingManager.kt +++ b/src/main/kotlin/infrastructure/digitaltwin/DigitalTwinSurgeryBookingManager.kt @@ -16,7 +16,7 @@ import com.azure.digitaltwins.core.DigitalTwinsClient import com.azure.digitaltwins.core.DigitalTwinsClientBuilder import com.azure.digitaltwins.core.implementation.models.ErrorResponseException import com.azure.identity.ClientSecretCredentialBuilder -import entities.SurgeryBooking +import entity.SurgeryBooking /** * The Azure endpoint. diff --git a/src/main/kotlin/usecase/repository/SurgeryBookingRepository.kt b/src/main/kotlin/usecase/repository/SurgeryBookingRepository.kt index 241c971e..0c5093ae 100644 --- a/src/main/kotlin/usecase/repository/SurgeryBookingRepository.kt +++ b/src/main/kotlin/usecase/repository/SurgeryBookingRepository.kt @@ -8,7 +8,7 @@ package usecase.repository -import entities.SurgeryBooking +import entity.SurgeryBooking /** * Interface that models the repository for surgery booking. diff --git a/src/test/kotlin/entities/SurgeryBookingTest.kt b/src/test/kotlin/entity/SurgeryBookingTest.kt similarity index 98% rename from src/test/kotlin/entities/SurgeryBookingTest.kt rename to src/test/kotlin/entity/SurgeryBookingTest.kt index 5e8042cc..faeffeca 100644 --- a/src/test/kotlin/entities/SurgeryBookingTest.kt +++ b/src/test/kotlin/entity/SurgeryBookingTest.kt @@ -6,7 +6,7 @@ * https://opensource.org/licenses/MIT. */ -package entities +package entity import io.kotest.assertions.throwables.shouldThrow import io.kotest.core.spec.style.StringSpec