From 2dfb86896d7b9804d0e703ea0794162c3c6f3458 Mon Sep 17 00:00:00 2001 From: Reinhard Prechtl Date: Fri, 9 Jun 2017 14:06:05 +0200 Subject: [PATCH] Rename the service implementation to better reflect its functionality --- .../domain/city/{DefaultCityService.kt => JpaCityService.kt} | 2 +- .../city/{DefaultCityServiceTest.kt => JpaCityServiceTest.kt} | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) rename domain/src/main/kotlin/de/rpr/mycity/domain/city/{DefaultCityService.kt => JpaCityService.kt} (92%) rename domain/src/test/kotlin/de/rpr/mycity/domain/city/{DefaultCityServiceTest.kt => JpaCityServiceTest.kt} (98%) diff --git a/domain/src/main/kotlin/de/rpr/mycity/domain/city/DefaultCityService.kt b/domain/src/main/kotlin/de/rpr/mycity/domain/city/JpaCityService.kt similarity index 92% rename from domain/src/main/kotlin/de/rpr/mycity/domain/city/DefaultCityService.kt rename to domain/src/main/kotlin/de/rpr/mycity/domain/city/JpaCityService.kt index b40a0a0..cfb3d0f 100644 --- a/domain/src/main/kotlin/de/rpr/mycity/domain/city/DefaultCityService.kt +++ b/domain/src/main/kotlin/de/rpr/mycity/domain/city/JpaCityService.kt @@ -12,7 +12,7 @@ import javax.transaction.Transactional @Service @Transactional -internal class DefaultCityService(val cityRepo: CityRepository, val log: Logger) : CityService { +internal class JpaCityService(val cityRepo: CityRepository, val log: Logger) : CityService { override fun retrieveCity(cityId: String): CityDto? { log.debug("Retrieving city: {}", cityId) diff --git a/domain/src/test/kotlin/de/rpr/mycity/domain/city/DefaultCityServiceTest.kt b/domain/src/test/kotlin/de/rpr/mycity/domain/city/JpaCityServiceTest.kt similarity index 98% rename from domain/src/test/kotlin/de/rpr/mycity/domain/city/DefaultCityServiceTest.kt rename to domain/src/test/kotlin/de/rpr/mycity/domain/city/JpaCityServiceTest.kt index 1e55754..fc916ed 100644 --- a/domain/src/test/kotlin/de/rpr/mycity/domain/city/DefaultCityServiceTest.kt +++ b/domain/src/test/kotlin/de/rpr/mycity/domain/city/JpaCityServiceTest.kt @@ -26,11 +26,11 @@ import javax.transaction.Transactional @RunWith(SpringRunner::class) @ContextConfiguration(classes = arrayOf( - DefaultCityServiceTest.Config::class, + JpaCityServiceTest.Config::class, CityConfig::class)) @Transactional @DataJpaTest -internal class DefaultCityServiceTest { +internal class JpaCityServiceTest { class Config {