Class MessageServiceTest


  • @ExtendWith(org.mockito.junit.jupiter.MockitoExtension.class)
    @ActiveProfiles("test")
    public class MessageServiceTest
    extends java.lang.Object
    • Constructor Detail

      • MessageServiceTest

        public MessageServiceTest()
    • Method Detail

      • setup

        @BeforeEach
        public void setup()
      • createMessage_ChatIsNotPresent_ReturnsNull

        @Test
        public void createMessage_ChatIsNotPresent_ReturnsNull()
      • createMessage_ChatIsPresent_ReturnsCreatedMessage

        @Test
        public void createMessage_ChatIsPresent_ReturnsCreatedMessage()
      • createMessageDTO_ChatAndUserArePresent_AddsMessageDTOAndReturnsIt

        @Test
        public void createMessageDTO_ChatAndUserArePresent_AddsMessageDTOAndReturnsIt()