diff --git a/spring-boot/src/test/java/com/baeldung/websocket/client/MyStompSessionHandlerTest.java b/spring-boot/src/test/java/com/baeldung/websocket/client/MyStompSessionHandlerTest.java index b8b1ec8c6c..b61cd6d61d 100644 --- a/spring-boot/src/test/java/com/baeldung/websocket/client/MyStompSessionHandlerTest.java +++ b/spring-boot/src/test/java/com/baeldung/websocket/client/MyStompSessionHandlerTest.java @@ -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();