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
|
@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)
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue