Skip to content

Commit

Permalink
Fixed deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
cc-jhr committed Aug 19, 2021
1 parent 81ea304 commit b8a754f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package de.codecentric.hikaku.extensions
import org.junit.jupiter.api.Nested
import org.junit.jupiter.api.Test
import java.io.File
import kotlin.io.path.createTempDirectory
import kotlin.test.assertFailsWith

class FileExtensionsTest {
Expand All @@ -20,7 +21,7 @@ class FileExtensionsTest {
@Test
fun `directory in validity check throws an exception`() {
assertFailsWith<IllegalArgumentException> {
createTempDir().checkFileValidity()
createTempDirectory().checkFileValidity()
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import de.codecentric.hikaku.endpoints.HttpMethod
import de.codecentric.hikaku.endpoints.QueryParameter
import org.raml.v2.api.model.v10.methods.Method

internal fun Method.hikakuHttpMethod() = HttpMethod.valueOf(this.method().toUpperCase())
internal fun Method.hikakuHttpMethod() = HttpMethod.valueOf(this.method().uppercase())

internal fun Method.hikakuQueryParameters(): Set<QueryParameter> {
return this.queryParameters()
Expand Down

0 comments on commit b8a754f

Please sign in to comment.