Package idatt2106.group3.backend.Web
Class ChatControllerTest
- java.lang.Object
-
- idatt2106.group3.backend.Web.ChatControllerTest
-
@SpringBootTest @AutoConfigureMockMvc @ActiveProfiles("test") public class ChatControllerTest extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ChatControllerTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createChat_PostChat_StatusCreated()
void
createMessage_PostMessage_StatusCreated()
void
deleteChat_ShouldDeleteChat_StatusOk()
void
getChat_ReturnsFirstChat_StatusOk()
void
getChats_ReturnsChats_StatusOk()
void
getMessages_ReturnsMessagesFromAChat_StatusOk()
void
setUp()
void
teardown()
void
updateChat_UpdateChatGetResponse_StatusOk()
-
-
-
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
-
-