Disambiguate BodyExtractors/Inserters Kotlin function names
This commit is contained in:
@@ -15,23 +15,23 @@ import org.mockito.junit.MockitoJUnitRunner
|
||||
class BodyExtractorsExtensionsTests {
|
||||
|
||||
@Test
|
||||
fun `toMono with KClass`() {
|
||||
assertNotNull(toMono(Foo::class))
|
||||
fun `bodyToMono with KClass`() {
|
||||
assertNotNull(bodyToMono(Foo::class))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `toMono with reified type parameter`() {
|
||||
assertNotNull(toMono<Foo>())
|
||||
fun `bodyToMono with reified type parameter`() {
|
||||
assertNotNull(bodyToMono<Foo>())
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `toFlux with KClass`() {
|
||||
assertNotNull(toFlux(Foo::class))
|
||||
fun `bodyToFlux with KClass`() {
|
||||
assertNotNull(bodyToFlux(Foo::class))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `toFlux with reified type parameter`() {
|
||||
assertNotNull(toFlux<Foo>())
|
||||
fun `bodyToFlux with reified type parameter`() {
|
||||
assertNotNull(bodyToFlux<Foo>())
|
||||
}
|
||||
|
||||
class Foo
|
||||
|
||||
@@ -17,15 +17,15 @@ import org.reactivestreams.Publisher
|
||||
class BodyInsertersExtensionsTests {
|
||||
|
||||
@Test
|
||||
fun `fromPublisher with reified type parameters`() {
|
||||
fun `bodyFromPublisher with reified type parameters`() {
|
||||
val publisher = mock<Publisher<Foo>>()
|
||||
assertNotNull(fromPublisher(publisher))
|
||||
assertNotNull(bodyFromPublisher(publisher))
|
||||
}
|
||||
|
||||
@Test
|
||||
fun `fromServerSentEvents with reified type parameters`() {
|
||||
fun `bodyFromServerSentEvents with reified type parameters`() {
|
||||
val publisher = mock<Publisher<Foo>>()
|
||||
assertNotNull(fromServerSentEvents(publisher))
|
||||
assertNotNull(bodyFromServerSentEvents(publisher))
|
||||
}
|
||||
|
||||
class Foo
|
||||
|
||||
Reference in New Issue
Block a user