Update Kotlin Test Usage

Issue gh-13539
This commit is contained in:
Josh Cummings 2023-07-14 17:55:19 -06:00
parent a08036aee5
commit cf79af2386
No known key found for this signature in database
GPG Key ID: A306A51F43B8E5A5
6 changed files with 39 additions and 20 deletions

View File

@ -124,11 +124,13 @@ class AuthorizeHttpRequestsDslTests {
@RestController @RestController
internal class PathController { internal class PathController {
@RequestMapping("/path") @RequestMapping("/path")
fun path() { fun path(): String {
return "ok"
} }
@RequestMapping("/onlyPostPermitted") @RequestMapping("/onlyPostPermitted")
fun onlyPostPermitted() { fun onlyPostPermitted():String {
return "ok"
} }
} }
} }
@ -274,7 +276,8 @@ class AuthorizeHttpRequestsDslTests {
@RestController @RestController
internal class PathController { internal class PathController {
@GetMapping("/") @GetMapping("/")
fun index() { fun index(): String {
return "ok"
} }
} }
@ -340,7 +343,8 @@ class AuthorizeHttpRequestsDslTests {
@RestController @RestController
internal class PathController { internal class PathController {
@GetMapping("/") @GetMapping("/")
fun index() { fun index(): String {
return "ok"
} }
} }
@ -405,7 +409,8 @@ class AuthorizeHttpRequestsDslTests {
@RestController @RestController
internal class PathController { internal class PathController {
@GetMapping("/") @GetMapping("/")
fun index() { fun index(): String {
return "ok"
} }
} }
@ -471,7 +476,8 @@ class AuthorizeHttpRequestsDslTests {
@RestController @RestController
internal class PathController { internal class PathController {
@GetMapping("/") @GetMapping("/")
fun index() { fun index(): String {
return "ok"
} }
} }

View File

@ -114,11 +114,13 @@ class AuthorizeRequestsDslTests {
@RestController @RestController
internal class PathController { internal class PathController {
@RequestMapping("/path") @RequestMapping("/path")
fun path() { fun path(): String {
return "ok"
} }
@RequestMapping("/onlyPostPermitted") @RequestMapping("/onlyPostPermitted")
fun onlyPostPermitted() { fun onlyPostPermitted(): String {
return "ok"
} }
} }
} }
@ -171,7 +173,8 @@ class AuthorizeRequestsDslTests {
@RestController @RestController
internal class PathController { internal class PathController {
@RequestMapping("/path") @RequestMapping("/path")
fun path() { fun path(): String {
return "ok"
} }
} }
} }
@ -327,7 +330,8 @@ class AuthorizeRequestsDslTests {
@RestController @RestController
internal class PathController { internal class PathController {
@GetMapping("/") @GetMapping("/")
fun index() { fun index():String {
return "ok"
} }
} }
@ -398,7 +402,8 @@ class AuthorizeRequestsDslTests {
@RestController @RestController
internal class PathController { internal class PathController {
@GetMapping("/") @GetMapping("/")
fun index() { fun index():String {
return "ok"
} }
} }
@ -461,7 +466,8 @@ class AuthorizeRequestsDslTests {
@RestController @RestController
internal class PathController { internal class PathController {
@RequestMapping("/path") @RequestMapping("/path")
fun path() { fun path():String {
return "ok"
} }
} }
} }
@ -484,7 +490,8 @@ class AuthorizeRequestsDslTests {
@RestController @RestController
internal class PathController { internal class PathController {
@RequestMapping("/path") @RequestMapping("/path")
fun path() { fun path(): String {
return "ok"
} }
} }
} }
@ -522,7 +529,8 @@ class AuthorizeRequestsDslTests {
@RestController @RestController
internal class PathController { internal class PathController {
@RequestMapping("/path") @RequestMapping("/path")
fun path() { fun path(): String {
return "ok"
} }
} }
} }

View File

@ -290,11 +290,13 @@ class CsrfDslTests {
@RestController @RestController
internal class BasicController { internal class BasicController {
@PostMapping("/test1") @PostMapping("/test1")
fun test1() { fun test1():String {
return "ok"
} }
@PostMapping("/test2") @PostMapping("/test2")
fun test2() { fun test2():String {
return "ok"
} }
} }

View File

@ -217,7 +217,8 @@ class HttpBasicDslTests {
@RestController @RestController
class MainController { class MainController {
@GetMapping("/") @GetMapping("/")
fun main() { fun main():String {
return "ok"
} }
} }
} }

View File

@ -128,7 +128,9 @@ class OAuth2LoginDslTests {
@RestController @RestController
class LoginController { class LoginController {
@GetMapping("/custom-login") @GetMapping("/custom-login")
fun loginPage() { } fun loginPage():String {
return "ok"
}
} }
} }

View File

@ -201,8 +201,8 @@ public class PrePostAdviceReactiveMethodInterceptor implements MethodInterceptor
return ReactiveFlowKt.asFlow(publisher); return ReactiveFlowKt.asFlow(publisher);
} }
private static Object awaitSingleOrNull(Publisher<?> publisher, Object continuation) { private static Object awaitSingleOrNull(Mono<?> publisher, Object continuation) {
return MonoKt.awaitSingleOrNull(publisher, (Continuation<?>) continuation); return MonoKt.awaitSingleOrNull(publisher, (Continuation<Object>) continuation);
} }
} }