Fixed ktlint errors

This commit is contained in:
Nite 2020-08-27 11:02:33 +02:00
parent ca2bfbf14b
commit 0f42ee20cc
No known key found for this signature in database
GPG Key ID: 1D1AD59B1C6386C1
4 changed files with 14 additions and 14 deletions

View File

@ -1,7 +1,5 @@
package org.moire.ultrasonic.api.subsonic
import com.fasterxml.jackson.databind.ObjectMapper
import okhttp3.mockwebserver.MockResponse
import org.amshove.kluent.`should be`
import org.junit.Before
import org.junit.Test

View File

@ -2,9 +2,7 @@ package org.moire.ultrasonic.api.subsonic.interceptors
import kotlin.LazyThreadSafetyMode.NONE
import okhttp3.Interceptor
import okhttp3.mockwebserver.MockResponse
import org.amshove.kluent.`should contain`
import org.amshove.kluent.`should equal`
import org.junit.Test
import org.moire.ultrasonic.api.subsonic.SubsonicAPIVersions
import org.moire.ultrasonic.api.subsonic.enqueueResponse

View File

@ -18,11 +18,15 @@ class SubsonicAPIVersionsTest(private val apiVersion: SubsonicAPIVersions) {
@Test
fun `Should proper convert api version to enum`() {
SubsonicAPIVersions.getClosestKnownClientApiVersion(apiVersion.restApiVersion) `should equal` apiVersion
SubsonicAPIVersions.getClosestKnownClientApiVersion(
apiVersion.restApiVersion
) `should equal` apiVersion
}
@Test(expected = IllegalArgumentException::class)
fun `Should throw IllegalArgumentException for unknown api version`() {
SubsonicAPIVersions.getClosestKnownClientApiVersion(apiVersion.restApiVersion.substring(0, 2))
SubsonicAPIVersions.getClosestKnownClientApiVersion(
apiVersion.restApiVersion.substring(0, 2)
)
}
}