Class ChatServiceTest


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

      • ChatServiceTest

        public ChatServiceTest()
    • Method Detail

      • setup

        @BeforeEach
        public void setup()
      • getChats_ListWithTwoObjects_ReturnsList

        @Test
        public void getChats_ListWithTwoObjects_ReturnsList()
      • getChat_IdExists_UserIsCorrect

        @Test
        public void getChat_IdExists_UserIsCorrect()
      • createChat_userGetsAdded_ReturnsUser

        @Test
        public void createChat_userGetsAdded_ReturnsUser()
      • updateChat_updatesChat_ReturnsUpdatedChat

        @Test
        public void updateChat_updatesChat_ReturnsUpdatedChat()
      • getMessages_MessagesExists_ReturnsSet

        @Test
        public void getMessages_MessagesExists_ReturnsSet()