Skip to content

Commit 3ecd0cd

Browse files
committed
code cleanup
1 parent 682e600 commit 3ecd0cd

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/main/kotlin/org/learning/by/example/reactive/kotlin/microservices/KotlinReactiveMS/application/ApplicationConfig.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@ internal class ApplicationConfig {
4242
= GeoLocationServiceImpl(endPoint)
4343

4444
@Bean
45-
internal fun gunriseSunsetService(@Value("\${SunriseSunsetServiceImpl.endPoint}") endPoint: String): SunriseSunsetService
45+
internal fun sunriseSunsetService(@Value("\${SunriseSunsetServiceImpl.endPoint}") endPoint: String): SunriseSunsetService
4646
= SunriseSunsetServiceImpl(endPoint)
4747
}

src/test/kotlin/org/learning/by/example/reactive/kotlin/microservices/KotlinReactiveMS/application/KotlinReactiveMsApplicationTests.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ private class KotlinReactiveMsApplicationTests : BasicIntegrationTest() {
2828

2929
@Test
3030
fun getLocation() {
31-
val locationResponse: LocationResponse = get(url = "${API_LOCATION}/${GOOGLE_ADDRESS}")
31+
val locationResponse: LocationResponse = get(url = "$API_LOCATION/$GOOGLE_ADDRESS")
3232
locationResponse.geographicCoordinates `should not be` null
3333
}
3434

src/test/kotlin/org/learning/by/example/reactive/kotlin/microservices/KotlinReactiveMS/routers/ApiRouterTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ private class ApiRouterTest : BasicIntegrationTest() {
5656
(geoLocationService `will return` GOOGLE_LOCATION_MONO).fromAddress(any())
5757
(sunriseSunsetService `will return` SUNRISE_SUNSET).fromGeographicCoordinates(any())
5858

59-
val locationResponse : LocationResponse = get(url = "${API_LOCATION}/${GOOGLE_ADDRESS}")
59+
val locationResponse : LocationResponse = get(url = "$API_LOCATION/$GOOGLE_ADDRESS")
6060
locationResponse.geographicCoordinates `should not be` null
6161

6262
geoLocationService reset `mock responses`

src/test/kotlin/org/learning/by/example/reactive/kotlin/microservices/KotlinReactiveMS/routers/MainRouterTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ private class MainRouterTest : BasicIntegrationTest() {
6060
(geoLocationService `will return` GOOGLE_LOCATION).fromAddress(any())
6161
(sunriseSunsetService `will return` SUNRISE_SUNSET).fromGeographicCoordinates(any())
6262

63-
val locationResponse : LocationResponse = get(url = "${API_LOCATION}/${GOOGLE_ADDRESS}")
63+
val locationResponse : LocationResponse = get(url = "$API_LOCATION/$GOOGLE_ADDRESS")
6464
locationResponse.geographicCoordinates `should not be` null
6565

6666
geoLocationService reset `mock responses`

src/test/kotlin/org/learning/by/example/reactive/kotlin/microservices/KotlinReactiveMS/routers/StaticRouterTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ private class StaticRouterTest : BasicIntegrationTest() {
3737

3838
private fun verifyTitleIs(html: String, title: String) {
3939
val doc = Jsoup.parse(html)
40-
val element = doc.head().getElementsByTag(TITLE_TAG).get(0)
40+
val element = doc.head().getElementsByTag(TITLE_TAG)[0]
4141
val text = element.text()
4242
text `should equal to` title
4343
}

0 commit comments

Comments
 (0)