7778798081828384858687
Queue<String> msgs = clientEcho.awaitMessages(1); Assert.assertEquals("Expected message","Hello World",msgs.poll()); } finally { client.stop(); } } finally { wsb.stop();
8081828384858687888990
Queue<String> msgs = clientEcho.awaitMessages(1); Assert.assertEquals("Expected message",msg,msgs.poll()); } finally { client.stop(); } } finally { wsb.stop();
383940414243444546
client.connect(socket, loggregatorUri, request); logger.debug(NLS.bind("Connecting to: {0}", loggregatorUri)); socket.awaitClose(5, TimeUnit.SECONDS); } finally { client.stop(); } } }