Class ChatControllerTest


  • @SpringBootTest
    @AutoConfigureMockMvc
    @ActiveProfiles("test")
    public class ChatControllerTest
    extends java.lang.Object
    • Constructor Detail

      • ChatControllerTest

        public ChatControllerTest()
    • Method Detail

      • setUp

        @BeforeEach
        public void setUp()
      • teardown

        @AfterEach
        public void teardown()
      • getChat_ReturnsFirstChat_StatusOk

        @Test
        public void getChat_ReturnsFirstChat_StatusOk()
                                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getChats_ReturnsChats_StatusOk

        @Test
        public void getChats_ReturnsChats_StatusOk()
                                            throws java.lang.Exception
        Throws:
        java.lang.Exception
      • createChat_PostChat_StatusCreated

        @Test
        public void createChat_PostChat_StatusCreated()
                                               throws java.lang.Exception
        Throws:
        java.lang.Exception
      • updateChat_UpdateChatGetResponse_StatusOk

        @Test
        public void updateChat_UpdateChatGetResponse_StatusOk()
                                                       throws java.lang.Exception
        Throws:
        java.lang.Exception
      • getMessages_ReturnsMessagesFromAChat_StatusOk

        @Test
        public void getMessages_ReturnsMessagesFromAChat_StatusOk()
                                                           throws java.lang.Exception
        Throws:
        java.lang.Exception
      • createMessage_PostMessage_StatusCreated

        @Test
        public void createMessage_PostMessage_StatusCreated()
                                                     throws java.lang.Exception
        Throws:
        java.lang.Exception
      • deleteChat_ShouldDeleteChat_StatusOk

        @Test
        public void deleteChat_ShouldDeleteChat_StatusOk()
                                                  throws java.lang.Exception
        Throws:
        java.lang.Exception