Rename the service implementation to better reflect its functionality
This commit is contained in:
parent
7073606393
commit
2dfb86896d
2 changed files with 3 additions and 3 deletions
|
@ -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)
|
|
@ -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 {
|
||||
|
Loading…
Reference in a new issue