-
-
Save henesgokdag/78a1ffb5acda4a267076c52eddf98cc4 to your computer and use it in GitHub Desktop.
shouldSendMessage unit test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Test | |
public void shouldSendMessage(){ | |
//given | |
Message message = new Message("test-title","test-text"); | |
//when | |
messageService.sendMessage(message); | |
//then | |
Mockito.verify(messageRepository,times(1)).save(message); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment