#532 - Adapt to changes in Kotlin Coroutines 1.3.

This commit is contained in:
Mark Paluch
2019-09-04 14:37:03 +02:00
parent 484cd95f19
commit 8b1fcfce37
2 changed files with 4 additions and 2 deletions

View File

@@ -15,9 +15,10 @@
*/
package example.springdata.mongodb.people
import kotlinx.coroutines.ExperimentalCoroutinesApi
import kotlinx.coroutines.flow.toList
import kotlinx.coroutines.reactive.awaitSingle
import kotlinx.coroutines.reactive.flow.asFlow
import kotlinx.coroutines.reactive.asFlow
import kotlinx.coroutines.runBlocking
import org.assertj.core.api.Assertions.assertThat
import org.junit.Before
@@ -62,6 +63,7 @@ class FlowAndCoroutinesTests {
}
@Test
@ExperimentalCoroutinesApi
fun `find - the flow way`() {
StepVerifier.create(operations.insert<Person>().one(Person("Tyrion", "Lannister"))).expectNextCount(1).verifyComplete()

View File

@@ -12,7 +12,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.2.0.M5</version>
<version>2.2.0.BUILD-SNAPSHOT</version>
</parent>
<modules>