Response status is 200 instead 400 when an invalid parameter was entered in the placestatus #1280
Tests Report ❌
✔️ core/target/surefire-reports/TEST-greencity.config.AsyncConfigTest.xml
1 tests were completed in 6ms with 1 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
greencity.config.AsyncConfigTest | 1✔️ | 6ms |
✔️ greencity.config.AsyncConfigTest
✔️ testCustomTaskExecutor
✔️ core/target/surefire-reports/TEST-greencity.config.WebSocketConfigTest.xml
3 tests were completed in 129ms with 3 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
greencity.config.WebSocketConfigTest | 3✔️ | 129ms |
✔️ greencity.config.WebSocketConfigTest
✔️ configureMessageConvertersTest
✔️ registerStompEndpointsTest
✔️ configureMessageBrokerTest
✔️ core/target/surefire-reports/TEST-greencity.controller.EmailControllerTest.xml
10 tests were completed in 192ms with 10 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
greencity.controller.EmailControllerTest | 10✔️ | 192ms |
✔️ greencity.controller.EmailControllerTest
✔️ sendUserTaggedInCommentNotification
✔️ sendHabitNotification
✔️ sendUserViolationEmailTest
✔️ addEcoNews
✔️ sendEmailNotificationTest
✔️ changePlaceStatusInvalidPlaceStatus
✔️ sendReport
✔️ changePlaceStatus
✔️ sendUserReceivedScheduledNotification
✔️ sendHabitAssignNotification
✔️ core/target/surefire-reports/TEST-greencity.controller.UserControllerTest.xml
52 tests were completed in 1s with 52 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
greencity.controller.UserControllerTest | 52✔️ | 1s |
✔️ greencity.controller.UserControllerTest
✔️ saveTest
✔️ getReasonsOfDeactivation
✔️ getUserByPrincipalTest
✔️ scheduleDeleteDeactivateUserTest
✔️ findUserForAchievementTest
✔️ getAllAuthoritiesTest
✔️ deactivateEmployeeByUUID
✔️ findAllUsersCitiesTest
✔️ updateEmployeeEmailTest
✔️ getAllUsersTest
✔️ deleteUserProfilePictureTest
✔️ activateUser
✔️ editUserRatingTest
✔️ findByEmailTest
✔️ updateStatusTest
✔️ deactivateAllUserTest
✔️ getUserProfileInformationTest
✔️ checkUsersOnlineStatusTest
✔️ searchTest
✔️ findNotDeactivatedByEmailIfNullTest
✔️ checkIfTheUserIsOnlineTest
✔️ createUbsRecordTest
✔️ searchByTest
✔️ saveUserTest
✔️ findUserForManagementTest
✔️ findAllTest
✔️ getActivatedUsersAmountTest
✔️ findUuidByEmailTest
✔️ updateUserProfilePictureTest
✔️ deactivateUser
✔️ getRolesTest
✔️ editAuthoritiesTest
✔️ findAllByEmailNotificationTest
✔️ updateRoleTest
✔️ updateUserTest
✔️ findAllRegistrationMonthsMapTest
✔️ getUsersByFilterTest
✔️ findNotDeactivatedByEmailTest
✔️ updateStatusBadRequestTest
✔️ checkIfUserExistsByUuidTest
✔️ getAvailableCustomShoppingListItemTest
✔️ updateUserManagementTest
✔️ updateUserManagementBadRequestTest
✔️ findByIdTest
✔️ findIdByEmailTest
✔️ getPositionsAndRelatedAuthoritiesTest
✔️ updateRoleBadRequestForEmptyBodyTest
✔️ getUserProfileStatistics
✔️ getUserLang
✔️ updatePositionsAndRelatedAuthoritiesTest
✔️ updateUserLanguageTest
✔️ getEmailNotificationsTest
✔️ core/target/surefire-reports/TEST-greencity.exception.handler.CustomExceptionHandlerTest.xml
22 tests were completed in 491ms with 22 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
greencity.exception.handler.CustomExceptionHandlerTest | 22✔️ | 491ms |
✔️ greencity.exception.handler.CustomExceptionHandlerTest
✔️ handleHttpMessageNotReadable
✔️ handleBase64DecodedExceptionTest
✔️ handleUserAlreadyHasPasswordException
✔️ handleUserDeactivationExceptionTest
✔️ handleProfilePictureSizeExceededException
✔️ handleEmailNotVerified
✔️ handleInsufficientLocationDataExceptionTest
✔️ handleWrongIdException
✔️ handleMethodArgumentNotValid
✔️ handleBadEmailException
✔️ handleGoogleApiException
✔️ handleWrongPasswordException
✔️ handleBadSocialNetworkLinkException
✔️ handleLanguageNotFoundException
✔️ handleWrongEmailException
✔️ testHandleBadRefreshTokenException
✔️ handleUserStatusException
✔️ handleBadRequestException
✔️ testHandleBadSocialNetworkLinkException
✔️ handleGoogleApiException_GeocodingResultBadRequest_ReturnsBadRequest
✔️ handleNotFoundException
✔️ handleConversionFailedException
✔️ core/target/surefire-reports/TEST-greencity.security.controller.FacebookSecurityControllerTest.xml
2 tests were completed in 49ms with 2 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
greencity.security.controller.FacebookSecurityControllerTest | 2✔️ | 49ms |
✔️ greencity.security.controller.FacebookSecurityControllerTest
✔️ generateFacebookAuthorizeURLTest
✔️ generateFacebookAccessTokenTest
✔️ core/target/surefire-reports/TEST-greencity.security.controller.GoogleSecurityControllerTest.xml
1 tests were completed in 145ms with 1 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
greencity.security.controller.GoogleSecurityControllerTest | 1✔️ | 145ms |
✔️ greencity.security.controller.GoogleSecurityControllerTest
✔️ authenticateTest
✔️ core/target/surefire-reports/TEST-greencity.security.controller.ManagementSecurityControllerTest.xml
8 tests were completed in 2s with 8 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
greencity.security.controller.ManagementSecurityControllerTest | 8✔️ | 2s |
✔️ greencity.security.controller.ManagementSecurityControllerTest
✔️ loginPage
✔️ signInUserDeactivated
✔️ signInEmailNotVerified
✔️ signIn
✔️ signInUserDoNotHaveAuthorities
✔️ signInWrongPassword
✔️ signInWrongEmail
✔️ loginPageInvalidDto
❌ core/target/surefire-reports/TEST-greencity.security.controller.OwnSecurityControllerTest.xml
11 tests were completed in 447ms with 7 passed, 4 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
greencity.security.controller.OwnSecurityControllerTest | 7✔️ | 4❌ | 447ms |
❌ greencity.security.controller.OwnSecurityControllerTest
✔️ signInTest
✔️ verifyEmailTest
❌ setPassword
org.mockito.exceptions.verification.opentest4j.ArgumentsAreDifferent:
❌ updatePasswordTest
org.mockito.exceptions.verification.opentest4j.ArgumentsAreDifferent:
❌ hasPassword
org.mockito.exceptions.verification.opentest4j.ArgumentsAreDifferent:
✔️ changePasswordTest
✔️ updateAccessTokenTest
✔️ singUpTest
✔️ restoreTest
❌ deleteUser
org.mockito.exceptions.verification.opentest4j.ArgumentsAreDifferent:
✔️ singUpEmployeeTest
✔️ core/target/surefire-reports/TEST-greencity.security.filters.AccessTokenAuthenticationFilterTest.xml
3 tests were completed in 398ms with 3 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
greencity.security.filters.AccessTokenAuthenticationFilterTest | 3✔️ | 398ms |
✔️ greencity.security.filters.AccessTokenAuthenticationFilterTest
✔️ doFilterInternalTest
✔️ doFilterInternalTokenHasExpiredTest
✔️ doFilterInternalAccessDeniedTest
✔️ core/target/surefire-reports/TEST-greencity.security.filters.UserOnlineStatusUpdateFilterTest.xml
1 tests were completed in 2s with 1 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
greencity.security.filters.UserOnlineStatusUpdateFilterTest | 1✔️ | 2s |
✔️ greencity.security.filters.UserOnlineStatusUpdateFilterTest
✔️ doFilterInternalTest
✔️ core/target/surefire-reports/TEST-greencity.security.providers.JwtAuthenticationProviderTest.xml
4 tests were completed in 203ms with 4 passed, 0 failed and 0 skipped.
Test suite | Passed | Failed | Skipped | Time |
---|---|---|---|---|
greencity.security.providers.JwtAuthenticationProviderTest | 4✔️ | 203ms |
✔️ greencity.security.providers.JwtAuthenticationProviderTest
✔️ supportsTest
✔️ authenticateWithMalformedAccessToken
✔️ authenticateWithExpiredAccessToken
✔️ authenticateWithValidAccessToken
Annotations
github-actions / Tests Report
greencity.security.controller.OwnSecurityControllerTest ► setPassword
Failed test found in:
core/target/surefire-reports/TEST-greencity.security.controller.OwnSecurityControllerTest.xml
Error:
org.mockito.exceptions.verification.opentest4j.ArgumentsAreDifferent:
Raw output
org.mockito.exceptions.verification.opentest4j.ArgumentsAreDifferent:
Argument(s) are different! Wanted:
ownSecurityService.setPassword(
greencity.security.dto.ownsecurity.SetPasswordDto@db7dbca9,
"test@mail.com"
);
-> at greencity.security.controller.OwnSecurityControllerTest.setPassword(OwnSecurityControllerTest.java:189)
Actual invocations have different arguments:
ownSecurityService.setPassword(
greencity.security.dto.ownsecurity.SetPasswordDto@db7dbca9,
"test@example.com"
);
-> at greencity.security.controller.OwnSecurityController.setPassword(OwnSecurityController.java:277)
at greencity.security.controller.OwnSecurityControllerTest.setPassword(OwnSecurityControllerTest.java:189)
github-actions / Tests Report
greencity.security.controller.OwnSecurityControllerTest ► updatePasswordTest
Failed test found in:
core/target/surefire-reports/TEST-greencity.security.controller.OwnSecurityControllerTest.xml
Error:
org.mockito.exceptions.verification.opentest4j.ArgumentsAreDifferent:
Raw output
org.mockito.exceptions.verification.opentest4j.ArgumentsAreDifferent:
Argument(s) are different! Wanted:
ownSecurityService.updateCurrentPassword(
UpdatePasswordDto(password=String124=, confirmPassword=String123=),
"test@mail.com"
);
-> at greencity.security.controller.OwnSecurityControllerTest.updatePasswordTest(OwnSecurityControllerTest.java:218)
Actual invocations have different arguments:
ownSecurityService.updateCurrentPassword(
UpdatePasswordDto(password=String124=, confirmPassword=String123=),
"test@example.com"
);
-> at greencity.security.controller.OwnSecurityController.updatePassword(OwnSecurityController.java:218)
at greencity.security.controller.OwnSecurityControllerTest.updatePasswordTest(OwnSecurityControllerTest.java:218)
github-actions / Tests Report
greencity.security.controller.OwnSecurityControllerTest ► hasPassword
Failed test found in:
core/target/surefire-reports/TEST-greencity.security.controller.OwnSecurityControllerTest.xml
Error:
org.mockito.exceptions.verification.opentest4j.ArgumentsAreDifferent:
Raw output
org.mockito.exceptions.verification.opentest4j.ArgumentsAreDifferent:
Argument(s) are different! Wanted:
ownSecurityService.hasPassword(
"test@mail.com"
);
-> at greencity.security.controller.OwnSecurityControllerTest.hasPassword(OwnSecurityControllerTest.java:198)
Actual invocations have different arguments:
ownSecurityService.hasPassword(
"test@example.com"
);
-> at greencity.security.controller.OwnSecurityController.passwordStatus(OwnSecurityController.java:257)
at greencity.security.controller.OwnSecurityControllerTest.hasPassword(OwnSecurityControllerTest.java:198)
github-actions / Tests Report
greencity.security.controller.OwnSecurityControllerTest ► deleteUser
Failed test found in:
core/target/surefire-reports/TEST-greencity.security.controller.OwnSecurityControllerTest.xml
Error:
org.mockito.exceptions.verification.opentest4j.ArgumentsAreDifferent:
Raw output
org.mockito.exceptions.verification.opentest4j.ArgumentsAreDifferent:
Argument(s) are different! Wanted:
ownSecurityService.deleteUserByEmail(
"test@mail.com"
);
-> at greencity.security.controller.OwnSecurityControllerTest.deleteUser(OwnSecurityControllerTest.java:227)
Actual invocations have different arguments:
ownSecurityService.deleteUserByEmail(
"test@example.com"
);
-> at greencity.security.controller.OwnSecurityController.deleteUser(OwnSecurityController.java:295)
at greencity.security.controller.OwnSecurityControllerTest.deleteUser(OwnSecurityControllerTest.java:227)