Rename the service implementation to better reflect its functionality

This commit is contained in:
Reinhard Prechtl 2017-06-09 14:06:05 +02:00
parent 7073606393
commit 2dfb86896d
2 changed files with 3 additions and 3 deletions

View file

@ -12,7 +12,7 @@ import javax.transaction.Transactional
@Service @Service
@Transactional @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? { override fun retrieveCity(cityId: String): CityDto? {
log.debug("Retrieving city: {}", cityId) log.debug("Retrieving city: {}", cityId)

View file

@ -26,11 +26,11 @@ import javax.transaction.Transactional
@RunWith(SpringRunner::class) @RunWith(SpringRunner::class)
@ContextConfiguration(classes = arrayOf( @ContextConfiguration(classes = arrayOf(
DefaultCityServiceTest.Config::class, JpaCityServiceTest.Config::class,
CityConfig::class)) CityConfig::class))
@Transactional @Transactional
@DataJpaTest @DataJpaTest
internal class DefaultCityServiceTest { internal class JpaCityServiceTest {
class Config { class Config {