Package idatt2106.group3.backend.Service
Class ChatServiceTest
- java.lang.Object
-
- idatt2106.group3.backend.Service.ChatServiceTest
-
@ExtendWith(org.mockito.junit.jupiter.MockitoExtension.class) @ActiveProfiles("test") public class ChatServiceTest extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ChatServiceTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createChat_userGetsAdded_ReturnsUser()
void
getChat_IdExists_UserIsCorrect()
void
getChats_ListWithTwoObjects_ReturnsList()
void
getMessages_MessagesExists_ReturnsSet()
void
setup()
void
updateChat_updatesChat_ReturnsUpdatedChat()
-
-
-
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()
-
-