File tree Expand file tree Collapse file tree 4 files changed +4
-2
lines changed
main/kotlin/no/nav/security/mock/oauth2
java/examples/java/springboot/login
kotlin/examples/kotlin/ktor/login Expand file tree Collapse file tree 4 files changed +4
-2
lines changed Original file line number Diff line number Diff 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 " )
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 88import org .junit .jupiter .api .extension .ExtendWith ;
99import org .springframework .beans .factory .annotation .Autowired ;
1010import org .springframework .boot .test .context .SpringBootTest ;
11- import org .springframework .boot .web .server .LocalServerPort ;
11+ import org .springframework .boot .test . web .server .LocalServerPort ;
1212import org .springframework .http .client .reactive .ClientHttpConnector ;
1313import org .springframework .http .client .reactive .ReactorClientHttpConnector ;
1414import org .springframework .test .context .ContextConfiguration ;
Original file line number Diff line number Diff line change @@ -93,6 +93,7 @@ fun Application.module(authConfig: AuthConfig) {
9393}
9494
9595@Location(" /login/{type?}" )
96+ @OptIn(KtorExperimentalLocationsAPI ::class )
9697class Login (val type : String = " " )
9798
9899class AuthConfig (
You can’t perform that action at this time.
0 commit comments