Disambiguate BodyExtractors/Inserters Kotlin function names

This commit is contained in:
Sebastien Deleuze
2017-06-09 01:51:28 +03:00
parent 86580b2358
commit b6c09fa76a
4 changed files with 18 additions and 18 deletions

View File

@@ -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

View File

@@ -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