Polish Kotlin source code style
This commit is contained in:
@@ -26,7 +26,7 @@ import org.mockito.junit.MockitoJUnitRunner
|
||||
import org.springframework.core.ParameterizedTypeReference
|
||||
|
||||
/**
|
||||
* Mock object based tests for [ClientResponse] Kotlin extensions
|
||||
* Mock object based tests for [ClientResponse] Kotlin extensions.
|
||||
*
|
||||
* @author Sebastien Deleuze
|
||||
*/
|
||||
|
||||
@@ -28,7 +28,7 @@ import reactor.test.StepVerifier
|
||||
import java.net.URI
|
||||
|
||||
/**
|
||||
* Tests for [RouterFunction] Kotlin DSL
|
||||
* Tests for [RouterFunction] Kotlin DSL.
|
||||
*
|
||||
* @author Sebastien Deleuze
|
||||
*/
|
||||
@@ -52,7 +52,11 @@ class RouterFunctionDslTests {
|
||||
|
||||
@Test
|
||||
fun acceptAndPOST() {
|
||||
val request = builder().method(POST).uri(URI("/api/foo/")).header(ACCEPT, APPLICATION_JSON_VALUE).build()
|
||||
val request = builder()
|
||||
.method(POST)
|
||||
.uri(URI("/api/foo/"))
|
||||
.header(ACCEPT, APPLICATION_JSON_VALUE)
|
||||
.build()
|
||||
StepVerifier.create(sampleRouter().route(request))
|
||||
.expectNextCount(1)
|
||||
.verifyComplete()
|
||||
|
||||
@@ -28,7 +28,7 @@ import org.springframework.web.reactive.function.server.bodyToFlux
|
||||
import org.springframework.web.reactive.function.server.bodyToMono
|
||||
|
||||
/**
|
||||
* Mock object based tests for [ServerRequest] Kotlin extensions
|
||||
* Mock object based tests for [ServerRequest] Kotlin extensions.
|
||||
*
|
||||
* @author Sebastien Deleuze
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user