From b4ab356411761097ba2ee238b85d7d052ea08ed7 Mon Sep 17 00:00:00 2001 From: Kevin van der Vlist Date: Tue, 9 Dec 2014 09:04:38 +0100 Subject: [PATCH] Fixing a hystrix-examples compilation failure. One of the examples still used the now-deprecated toBlockingObservable(). It now uses toBlocking() which allows one to actually compile the examples again. --- .../com/netflix/hystrix/examples/basic/CommandHelloWorld.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hystrix-examples/src/main/java/com/netflix/hystrix/examples/basic/CommandHelloWorld.java b/hystrix-examples/src/main/java/com/netflix/hystrix/examples/basic/CommandHelloWorld.java index c743ac5c8..79813e75d 100644 --- a/hystrix-examples/src/main/java/com/netflix/hystrix/examples/basic/CommandHelloWorld.java +++ b/hystrix-examples/src/main/java/com/netflix/hystrix/examples/basic/CommandHelloWorld.java @@ -76,8 +76,8 @@ public void testObservable() throws Exception { Observable fBob = new CommandHelloWorld("Bob").observe(); // blocking - assertEquals("Hello World!", fWorld.toBlockingObservable().single()); - assertEquals("Hello Bob!", fBob.toBlockingObservable().single()); + assertEquals("Hello World!", fWorld.toBlocking().single()); + assertEquals("Hello Bob!", fBob.toBlocking().single()); // non-blocking // - this is a verbose anonymous inner-class approach and doesn't do assertions