Add missing Kotlin extensions for WebClient.ResponseSpec
Closes gh-26030
This commit is contained in:
committed by
Sébastien Deleuze
parent
3c85c263d2
commit
a1d134b086
@@ -125,5 +125,23 @@ class WebClientExtensionsTests {
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `ResponseSpec#toEntity with reified type parameters`() {
|
||||
responseSpec.toEntity<List<Foo>>()
|
||||
verify { responseSpec.toEntity(object : ParameterizedTypeReference<List<Foo>>() {}) }
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `ResponseSpec#toEntityList with reified type parameters`() {
|
||||
responseSpec.toEntityList<List<Foo>>()
|
||||
verify { responseSpec.toEntityList(object : ParameterizedTypeReference<List<Foo>>() {}) }
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `ResponseSpec#toEntityFlux with reified type parameters`() {
|
||||
responseSpec.toEntityFlux<List<Foo>>()
|
||||
verify { responseSpec.toEntityFlux(object : ParameterizedTypeReference<List<Foo>>() {}) }
|
||||
}
|
||||
|
||||
class Foo
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user