fix tests

This commit is contained in:
johan12345
2020-09-20 22:48:52 +02:00
parent 6f9ea6c6e3
commit e875e0ee42
2 changed files with 2 additions and 2 deletions

View File

@@ -33,7 +33,7 @@ class NewMotionAvailabilityDetectorTest {
val notFoundResponse = MockResponse().setResponseCode(HttpURLConnection.HTTP_NOT_FOUND)
override fun dispatch(request: RecordedRequest): MockResponse {
val segments = request.requestUrl.pathSegments()
val segments = request.requestUrl.pathSegments
val urlHead = segments.subList(0, 2).joinToString("/")
when (urlHead) {
"ge/chargepoints" -> {

View File

@@ -24,7 +24,7 @@ class GoingElectricApiTest {
webServer.dispatcher = object : Dispatcher() {
override fun dispatch(request: RecordedRequest): MockResponse {
val segments = request.requestUrl.pathSegments()
val segments = request.requestUrl.pathSegments
val urlHead = segments.subList(0, 2).joinToString("/")
when (urlHead) {
"ge/chargepoints" -> {