diff --git a/mongodb/kotlin/src/test/kotlin/example/springdata/mongodb/people/FlowAndCoroutinesTests.kt b/mongodb/kotlin/src/test/kotlin/example/springdata/mongodb/people/FlowAndCoroutinesTests.kt index 21dd03d2..a94e5a80 100644 --- a/mongodb/kotlin/src/test/kotlin/example/springdata/mongodb/people/FlowAndCoroutinesTests.kt +++ b/mongodb/kotlin/src/test/kotlin/example/springdata/mongodb/people/FlowAndCoroutinesTests.kt @@ -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().one(Person("Tyrion", "Lannister"))).expectNextCount(1).verifyComplete() diff --git a/pom.xml b/pom.xml index 7fddcb5e..ffc2b2d7 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ org.springframework.boot spring-boot-starter-parent - 2.2.0.M5 + 2.2.0.BUILD-SNAPSHOT