Polish InvocableHandlerMethodKotlinTests
This commit is contained in:
parent
48f3c08395
commit
c329ed83ef
|
@ -24,10 +24,8 @@ import org.junit.jupiter.api.Test
|
||||||
import org.springframework.core.ReactiveAdapterRegistry
|
import org.springframework.core.ReactiveAdapterRegistry
|
||||||
import org.springframework.http.HttpStatus
|
import org.springframework.http.HttpStatus
|
||||||
import org.springframework.http.server.reactive.ServerHttpResponse
|
import org.springframework.http.server.reactive.ServerHttpResponse
|
||||||
import org.springframework.web.bind.annotation.RequestMapping
|
|
||||||
import org.springframework.web.bind.annotation.RequestParam
|
import org.springframework.web.bind.annotation.RequestParam
|
||||||
import org.springframework.web.bind.annotation.ResponseStatus
|
import org.springframework.web.bind.annotation.ResponseStatus
|
||||||
import org.springframework.web.bind.annotation.RestController
|
|
||||||
import org.springframework.web.reactive.BindingContext
|
import org.springframework.web.reactive.BindingContext
|
||||||
import org.springframework.web.reactive.HandlerResult
|
import org.springframework.web.reactive.HandlerResult
|
||||||
import org.springframework.web.reactive.result.method.HandlerMethodArgumentResolver
|
import org.springframework.web.reactive.result.method.HandlerMethodArgumentResolver
|
||||||
|
@ -235,7 +233,6 @@ class InvocableHandlerMethodKotlinTests {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@RestController
|
|
||||||
class DefaultValueController {
|
class DefaultValueController {
|
||||||
|
|
||||||
fun handle(@RequestParam value: String = "default") = value
|
fun handle(@RequestParam value: String = "default") = value
|
||||||
|
@ -244,6 +241,5 @@ class InvocableHandlerMethodKotlinTests {
|
||||||
|
|
||||||
@Suppress("RedundantSuspendModifier")
|
@Suppress("RedundantSuspendModifier")
|
||||||
suspend fun handleSuspending(@RequestParam value: String = "default") = value
|
suspend fun handleSuspending(@RequestParam value: String = "default") = value
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue