Add support for Deferred to ReactiveAdapterRegistry
See gh-19975
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user