Add support for Deferred to ReactiveAdapterRegistry

See gh-19975
This commit is contained in:
Sebastien Deleuze
2019-03-15 18:22:19 +01:00
parent 1c9cbaf399
commit 1382220021
5 changed files with 107 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2018 the original author or authors.
* Copyright 2002-2019 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -23,6 +23,7 @@ import java.util.concurrent.CompletableFuture;
import io.reactivex.Flowable;
import io.reactivex.Maybe;
import kotlinx.coroutines.Deferred;
import org.junit.Test;
import org.reactivestreams.Publisher;
import reactor.core.publisher.Flux;
@@ -68,6 +69,9 @@ public class ReactiveAdapterRegistryTests {
assertNotNull(getAdapter(io.reactivex.Single.class));
assertNotNull(getAdapter(Maybe.class));
assertNotNull(getAdapter(io.reactivex.Completable.class));
// Coroutines
assertNotNull(getAdapter(Deferred.class));
}
@Test