A Java Client to Consume a WebSockets API
* - Initial checkin
* : Added junit tests
* Java Client to consume a WebSockets API) : Fixed the junit name
* A Java Client to Consume a WebSockets API
Fixed junit test name as per the standard
@@ -14,7 +14,7 @@ import org.springframework.messaging.simp.stomp.StompSession;
public class MyStompSessionHandlerTest {
@Test
- public void testAfterConnectedSuccessfull() {
+ public void givenValidSession_whenConnected_SendsMessage() {
StompSession mockSession = Mockito.mock(StompSession.class);
StompHeaders mockHeader = Mockito.mock(StompHeaders.class);
MyStompSessionHandler sessionHandler = new MyStompSessionHandler();
