@Test public void testSendMessage() throws IOException { final WebSocketSession webSocketSession = mock(WebSocketSession.class); final LiveUpdateSession session = new LiveUpdateSession(webSocketSession); session.sendMessage(randomUUID().toString()); verify(webSocketSession).sendMessage(any()); }
public void sendMessage(final String message) throws IOException { TextMessage textMessage = new TextMessage(message); session.sendMessage(textMessage); }
LiveUpdateSession { public void sendMessage(final String message) throws IOException { TextMessage textMessage = new TextMessage(message); session.sendMessage(textMessage); } }
LiveUpdateSession { public void sendMessage(final String message) throws IOException { TextMessage textMessage = new TextMessage(message); session.sendMessage(textMessage); }  }
LiveUpdateSession { public void sendMessage(final String message) throws IOException { TextMessage textMessage = new TextMessage(message); session.sendMessage(textMessage); }  void sendMessage(final String message); @Override int hashCode(); @Override boolean equals(final Object obj); }
LiveUpdateSession { public void sendMessage(final String message) throws IOException { TextMessage textMessage = new TextMessage(message); session.sendMessage(textMessage); }  void sendMessage(final String message); @Override int hashCode(); @Override boolean equals(final Object obj);  }