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
@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)

View file

@ -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 {