Skip to content

Commit 3dcea02

Browse files
committed
Adopt to changes in Kotlin Coroutines 1.5.1.
Closes #2411
1 parent 8262e21 commit 3dcea02

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/test/java/org/springframework/data/repository/util/ReactiveWrapperConvertersUnitTests.java

+2-4
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,14 @@
2020
import io.reactivex.Maybe;
2121
import kotlinx.coroutines.flow.Flow;
2222
import kotlinx.coroutines.flow.FlowKt;
23+
import kotlinx.coroutines.reactive.ReactiveFlowKt;
2324
import reactor.core.publisher.Flux;
2425
import reactor.core.publisher.Mono;
2526
import reactor.test.StepVerifier;
2627
import rx.Completable;
2728
import rx.Observable;
2829
import rx.Single;
2930

30-
import java.util.concurrent.atomic.AtomicBoolean;
31-
import java.util.concurrent.atomic.AtomicReference;
32-
3331
import org.junit.jupiter.api.Test;
3432
import org.reactivestreams.Publisher;
3533

@@ -323,6 +321,6 @@ void shouldMapKotlinFlow() {
323321

324322
Flow<String> flow = FlowKt.asFlow(new String[] { "foo" });
325323
Flow<Long> map = ReactiveWrapperConverters.map(flow, source -> 1L);
326-
StepVerifier.create(kotlinx.coroutines.reactive.FlowKt.asPublisher(map)).expectNext(1L).verifyComplete();
324+
StepVerifier.create(ReactiveFlowKt.asPublisher(map)).expectNext(1L).verifyComplete();
327325
}
328326
}

0 commit comments

Comments
 (0)