use of org.apache.cxf.jaxrs.rx3.client.FlowableRxInvokerProvider in project cxf by apache.
the class JAXRSRxJava3FlowableTest method testGetHelloWorldAsyncObservable404.
@Test
public void testGetHelloWorldAsyncObservable404() throws Exception {
String address = "http://localhost:" + PORT + "/rx3/flowable/textAsync404";
Invocation.Builder b = ClientBuilder.newClient().register(new FlowableRxInvokerProvider()).target(address).request();
final TestSubscriber<String> subscriber = new TestSubscriber<>();
b.rx(FlowableRxInvoker.class).get(String.class).subscribe(subscriber);
subscriber.await(1, TimeUnit.SECONDS);
subscriber.assertError(NotFoundException.class);
}
Aggregations