Skip to content

Commit 7bb8dea

Browse files
committed
got rid of some compiler warnings
1 parent 52e4159 commit 7bb8dea

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

build.gradle.kts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ dependencies {
7878
testImplementation("org.springframework.boot:spring-boot-starter-oauth2-resource-server:$springBootVersion")
7979
testImplementation("org.springframework.boot:spring-boot-starter-oauth2-client:$springBootVersion")
8080
testImplementation("org.springframework.boot:spring-boot-starter-test:$springBootVersion")
81+
testImplementation("org.springframework.boot:spring-boot-test:$springBootVersion")
8182
testImplementation("io.projectreactor:reactor-test:$reactorTestVersion")
8283
testImplementation("io.ktor:ktor-server-netty:$ktorVersion")
8384
testImplementation("io.ktor:ktor-server-sessions:$ktorVersion")

src/main/kotlin/no/nav/security/mock/oauth2/MockOAuth2Server.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ open class MockOAuth2Server(
103103
fun url(path: String): HttpUrl = httpServer.url(path)
104104

105105
@Deprecated("Use MockWebServer method/function instead", ReplaceWith("MockWebServer.enqueue()"))
106-
fun enqueueResponse(response: MockResponse) {
106+
fun enqueueResponse(@Suppress("UNUSED_PARAMETER") response: MockResponse) {
107107
throw UnsupportedOperationException("cannot enqueue MockResponse, please use the MockWebServer directly with QueueDispatcher")
108108
}
109109

src/test/java/examples/java/springboot/login/OAuth2LoginAppTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
import org.junit.jupiter.api.extension.ExtendWith;
99
import org.springframework.beans.factory.annotation.Autowired;
1010
import org.springframework.boot.test.context.SpringBootTest;
11-
import org.springframework.boot.web.server.LocalServerPort;
11+
import org.springframework.boot.test.web.server.LocalServerPort;
1212
import org.springframework.http.client.reactive.ClientHttpConnector;
1313
import org.springframework.http.client.reactive.ReactorClientHttpConnector;
1414
import org.springframework.test.context.ContextConfiguration;

src/test/kotlin/examples/kotlin/ktor/login/OAuth2LoginApp.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ fun Application.module(authConfig: AuthConfig) {
9393
}
9494

9595
@Location("/login/{type?}")
96+
@OptIn(KtorExperimentalLocationsAPI::class)
9697
class Login(val type: String = "")
9798

9899
class AuthConfig(

0 commit comments

Comments
 (0)