File tree 2 files changed +3
-2
lines changed
core/src/test/kotlin/de/codecentric/hikaku/extensions
raml/src/main/kotlin/de/codecentric/hikaku/converters/raml/extensions
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package de.codecentric.hikaku.extensions
3
3
import org.junit.jupiter.api.Nested
4
4
import org.junit.jupiter.api.Test
5
5
import java.io.File
6
+ import kotlin.io.path.createTempDirectory
6
7
import kotlin.test.assertFailsWith
7
8
8
9
class FileExtensionsTest {
@@ -20,7 +21,7 @@ class FileExtensionsTest {
20
21
@Test
21
22
fun `directory in validity check throws an exception` () {
22
23
assertFailsWith<IllegalArgumentException > {
23
- createTempDir ().checkFileValidity()
24
+ createTempDirectory ().checkFileValidity()
24
25
}
25
26
}
26
27
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import de.codecentric.hikaku.endpoints.HttpMethod
5
5
import de.codecentric.hikaku.endpoints.QueryParameter
6
6
import org.raml.v2.api.model.v10.methods.Method
7
7
8
- internal fun Method.hikakuHttpMethod () = HttpMethod .valueOf(this .method().toUpperCase ())
8
+ internal fun Method.hikakuHttpMethod () = HttpMethod .valueOf(this .method().uppercase ())
9
9
10
10
internal fun Method.hikakuQueryParameters (): Set <QueryParameter > {
11
11
return this .queryParameters()
You can’t perform that action at this time.
0 commit comments