Skip to content

Fixed group chat room management methods. ChatRoomService refactoring. #285

Fixed group chat room management methods. ChatRoomService refactoring.

Fixed group chat room management methods. ChatRoomService refactoring. #285

GitHub Actions / Tests Report succeeded Aug 10, 2024 in 0s

Tests Report ✔️

Tests passed successfully

Report Passed Failed Skipped Time
chat/target/surefire-reports/TEST-greencity.client.RestClientUbsTest.xml 5✔️ 123ms
chat/target/surefire-reports/TEST-greencity.controller.ChatControllerTest.xml 36✔️ 3s
chat/target/surefire-reports/TEST-greencity.mapping.ChatMessageDtoMapperTest.xml 1✔️ 2ms
chat/target/surefire-reports/TEST-greencity.mapping.ChatMessageMapperTest.xml 1✔️ 1ms
chat/target/surefire-reports/TEST-greencity.mapping.ChatMessageWithFileDtoMapperTest.xml 4✔️ 11ms
chat/target/surefire-reports/TEST-greencity.mapping.ChatMessageWithFileMapperTest.xml 1✔️ 2ms
chat/target/surefire-reports/TEST-greencity.mapping.ChatRoomDtoMapperTest.xml 2✔️ 5ms
chat/target/surefire-reports/TEST-greencity.mapping.ChatRoomMapperTest.xml 1✔️ 2ms
chat/target/surefire-reports/TEST-greencity.security.filters.AccessTokenAuthenticationFilterTest.xml 3✔️ 212ms
chat/target/surefire-reports/TEST-greencity.security.providers.JwtAuthenticationProviderTest.xml 4✔️ 171ms
chat/target/surefire-reports/TEST-greencity.service.client.RestClientUserTest.xml 3✔️ 2s
chat/target/surefire-reports/TEST-greencity.service.impl.AzureFileServiceImplTest.xml 3✔️ 657ms
chat/target/surefire-reports/TEST-greencity.service.impl.ChatMessageServiceImplTest.xml 15✔️ 179ms
chat/target/surefire-reports/TEST-greencity.service.impl.ChatRoomServiceImplTest.xml 27✔️ 809ms
chat/target/surefire-reports/TEST-greencity.service.impl.LanguageServiceImplTest.xml 6✔️ 96ms
chat/target/surefire-reports/TEST-greencity.service.impl.ParticipantServiceImplTest.xml 5✔️ 396ms

✔️ chat/target/surefire-reports/TEST-greencity.client.RestClientUbsTest.xml

5 tests were completed in 123ms with 5 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
greencity.client.RestClientUbsTest 5✔️ 123ms

✔️ greencity.client.RestClientUbsTest

✔️ testGetEmployeesByTariffIdWithChat
✔️ testGetTariffIdByLocationId
✔️ getEmployeeByEmailTest
✔️ checkIfTariffExistsByIdTest
✔️ getAllLocationsByCourierIdTest

✔️ chat/target/surefire-reports/TEST-greencity.controller.ChatControllerTest.xml

36 tests were completed in 3s with 36 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
greencity.controller.ChatControllerTest 36✔️ 3s

✔️ greencity.controller.ChatControllerTest

✔️ testAddUserToChatRoom
✔️ updateMessageTest
✔️ addAdminToChatRoomTest
✔️ chatExistTest
✔️ sentMessageTest
✔️ createNewSystemChatIfNotExistTest
✔️ createChatRoomTest
✔️ deleteAllMessagesFromChatRoomTest
✔️ uploadFileTest
✔️ testGetTariffIdByLocationId_WithValidLocationId_ReturnsTariffId
✔️ findAllMessagesTest
✔️ deleteMessageTest
✔️ cleanUnreadMessagesTest
✔️ deleteChatRoomTest
✔️ uploadVoiceTest
✔️ getAllParticipantsByWithEmptyPrincipalTest
✔️ uploadImageTest
✔️ updateChatRoomTest
✔️ findAllRoomsTest
✔️ findAllVisibleRoomsTest
✔️ deleteParticipantsFromChatRoomTest
✔️ getGroupChatsTest
✔️ leaveRoomTest
✔️ testGetAllLocationsByCourierId_ReturnsListOfLocations
✔️ getAllParticipantsByTest
✔️ getAllLocationsByCourierId_ReturnsListOfLocations
✔️ getAllChatRoomsByTest
✔️ getAllActiveChatsForAdminTest
✔️ getLastIdTest
✔️ findRoomByIdTest
✔️ deleteFileTest
✔️ getCurrentUserTest
✔️ testFindAllChatsByTariffId_WithValidTariffId_ReturnsChats
✔️ processMessageTest
✔️ getAllChatRoomsByWithEmptyQueryTest
✔️ likeMessageTest

✔️ chat/target/surefire-reports/TEST-greencity.mapping.ChatMessageDtoMapperTest.xml

1 tests were completed in 2ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
greencity.mapping.ChatMessageDtoMapperTest 1✔️ 2ms

✔️ greencity.mapping.ChatMessageDtoMapperTest

✔️ convert

✔️ chat/target/surefire-reports/TEST-greencity.mapping.ChatMessageMapperTest.xml

1 tests were completed in 1ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
greencity.mapping.ChatMessageMapperTest 1✔️ 1ms

✔️ greencity.mapping.ChatMessageMapperTest

✔️ convert

✔️ chat/target/surefire-reports/TEST-greencity.mapping.ChatMessageWithFileDtoMapperTest.xml

4 tests were completed in 11ms with 4 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
greencity.mapping.ChatMessageWithFileDtoMapperTest 4✔️ 11ms

✔️ greencity.mapping.ChatMessageWithFileDtoMapperTest

✔️ convertWithNullFields
✔️ convertWithLikes
✔️ convertWithEmptyLikes
✔️ convert

✔️ chat/target/surefire-reports/TEST-greencity.mapping.ChatMessageWithFileMapperTest.xml

1 tests were completed in 2ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
greencity.mapping.ChatMessageWithFileMapperTest 1✔️ 2ms

✔️ greencity.mapping.ChatMessageWithFileMapperTest

✔️ convert

✔️ chat/target/surefire-reports/TEST-greencity.mapping.ChatRoomDtoMapperTest.xml

2 tests were completed in 5ms with 2 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
greencity.mapping.ChatRoomDtoMapperTest 2✔️ 5ms

✔️ greencity.mapping.ChatRoomDtoMapperTest

✔️ convertWithNullMessages
✔️ convert

✔️ chat/target/surefire-reports/TEST-greencity.mapping.ChatRoomMapperTest.xml

1 tests were completed in 2ms with 1 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
greencity.mapping.ChatRoomMapperTest 1✔️ 2ms

✔️ greencity.mapping.ChatRoomMapperTest

✔️ convert

✔️ chat/target/surefire-reports/TEST-greencity.security.filters.AccessTokenAuthenticationFilterTest.xml

3 tests were completed in 212ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
greencity.security.filters.AccessTokenAuthenticationFilterTest 3✔️ 212ms

✔️ greencity.security.filters.AccessTokenAuthenticationFilterTest

✔️ doFilterInternalTokenHasExpired
✔️ doFilterInternal
✔️ doFilterInternalAccessDenied

✔️ chat/target/surefire-reports/TEST-greencity.security.providers.JwtAuthenticationProviderTest.xml

4 tests were completed in 171ms with 4 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
greencity.security.providers.JwtAuthenticationProviderTest 4✔️ 171ms

✔️ greencity.security.providers.JwtAuthenticationProviderTest

✔️ supportsTest
✔️ authenticateWithMalformedAccessToken
✔️ authenticateWithExpiredAccessToken
✔️ authenticateWithValidAccessToken

✔️ chat/target/surefire-reports/TEST-greencity.service.client.RestClientUserTest.xml

3 tests were completed in 2s with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
greencity.service.client.RestClientUserTest 3✔️ 2s

✔️ greencity.service.client.RestClientUserTest

✔️ updateUserLastActivityTimeTest
✔️ findNotDeactivatedByEmail
✔️ findIdByEmailTest

✔️ chat/target/surefire-reports/TEST-greencity.service.impl.AzureFileServiceImplTest.xml

3 tests were completed in 657ms with 3 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
greencity.service.impl.AzureFileServiceImplTest 3✔️ 657ms

✔️ greencity.service.impl.AzureFileServiceImplTest

✔️ saveFileTest
✔️ saveVoiceMessageTest
✔️ deleteTest

✔️ chat/target/surefire-reports/TEST-greencity.service.impl.ChatMessageServiceImplTest.xml

15 tests were completed in 179ms with 15 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
greencity.service.impl.ChatMessageServiceImplTest 15✔️ 179ms

✔️ greencity.service.impl.ChatMessageServiceImplTest

✔️ updateMessageTest_successful
✔️ likeMessage
✔️ findAllMessagesByChatRoomIdTest
✔️ deleteMessageTest_successfulWithFile
✔️ mergeChatMessageAndFileTest
✔️ findAllMessagesByChatRoomIdTest_WhenChatRoomDoesNotExist
✔️ deleteMessageTest_messageNotFound
✔️ deleteLikeFromMessage
✔️ sendFileTest
✔️ sendVoiceMessageTest
✔️ processMessage
✔️ updateMessageTest_messageNotFound
✔️ updateMessageTest_emptyContent
✔️ likeMessageNotFound
✔️ deleteMessageTest_successfulWithoutFile

✔️ chat/target/surefire-reports/TEST-greencity.service.impl.ChatRoomServiceImplTest.xml

27 tests were completed in 809ms with 27 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
greencity.service.impl.ChatRoomServiceImplTest 27✔️ 809ms

✔️ greencity.service.impl.ChatRoomServiceImplTest

✔️ leaveChatRoom
✔️ updateChatRoom
✔️ deleteMessagesFromChatRoomThrowsExceptionTest
✔️ testGetTariffIdByLocationId
✔️ deleteMessagesFromChatRoomTest
✔️ mapListChatRoomDtoTest
✔️ deletePrivateChatRoomThrowsException
✔️ findSystemChatByParticipantsForSocketsTest
✔️ testFindAllChatsByTariffId
✔️ deleteGroupChatTest
✔️ testGetActiveChatsForAdmin_NoTariffs
✔️ createNewChatRoom
✔️ testFindAllChatsByTariffIdTariffNotFoundException
✔️ testGetActiveChatsForAdmin_WithoutEmployee
✔️ testGetAllLocationsWithChatsByCourierId
✔️ testAddNewAdminToChat
✔️ findAllVisibleRooms
✔️ deleteParticipantsFromChatRoom
✔️ deleteGroupChatThrowsException
✔️ deletePrivateChatRoom
✔️ findChatRoomById
✔️ findAllChatRoomsByQuery
✔️ testGetActiveChatsForAdmin
✔️ addNewUserToSystemChat
✔️ findGroupChatRooms
✔️ findAllByParticipantName
✔️ deleteMessagesFromChatRoomTest_MessageWithFile

✔️ chat/target/surefire-reports/TEST-greencity.service.impl.LanguageServiceImplTest.xml

6 tests were completed in 96ms with 6 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
greencity.service.impl.LanguageServiceImplTest 6✔️ 96ms

✔️ greencity.service.impl.LanguageServiceImplTest

✔️ extractLanguageCodeFromRequestTest
✔️ getAllLanguages
✔️ findByCodeTest
✔️ extractLanguageCodeFromRequestTestWithNull
✔️ findByCodeTestException
✔️ findAllLanguageCodesTest

✔️ chat/target/surefire-reports/TEST-greencity.service.impl.ParticipantServiceImplTest.xml

5 tests were completed in 396ms with 5 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
greencity.service.impl.ParticipantServiceImplTest 5✔️ 396ms

✔️ greencity.service.impl.ParticipantServiceImplTest

✔️ findAllExceptCurrentUser
✔️ findById
✔️ getCurrentParticipantByEmail
✔️ findByEmail
✔️ findAllParticipantsByQuery