use of javax.websocket.SendResult in project atmosphere by Atmosphere.
the class JSR356WebSocketTest method test_semaphore_is_released_in_case_of_successful_write.
@Test(timeOut = 1000)
public void test_semaphore_is_released_in_case_of_successful_write() throws Exception {
mockWriteResult(new SendResult());
webSocket.write("Hello");
webSocket.write("Hello");
verify(asyncRemoteEndpoint, times(2)).sendText(eq("Hello"), any(SendHandler.class));
}
Aggregations