Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
289 0 0 0 100% 42.27 s

Note: failures are anticipated and checked for with assertions while errors are unanticipated.


Package List

[Summary] [Package List] [Test Cases]


Package Tests Errors Failures Skipped Success Rate Time
api.controllers 40 0 0 0 100% 3.595 s
api.services.storage 114 0 0 0 100% 15.79 s
api.controllers.users 135 0 0 0 100% 22.89 s

Note: package statistics are not computed recursively, they only sum up all of its testsuites numbers.

api.controllers

- Class Tests Errors Failures Skipped Success Rate Time
HeartbeatControllerTest 1 0 0 0 100% 0.018 s
AuthorityControllerTest$GetAuthority 3 0 0 0 100% 0.197 s
AuthorityControllerTest$GetAuthorities 2 0 0 0 100% 0.191 s
RoleControllerTest$DeleteRole 6 0 0 0 100% 1.250 s
RoleControllerTest$UpdateRole 10 0 0 0 100% 0.604 s
RoleControllerTest$CreateRole 5 0 0 0 100% 0.296 s
RoleControllerTest$GetRole 4 0 0 0 100% 0.263 s
RoleControllerTest$GetRoles 2 0 0 0 100% 0.224 s
AuthenticationControllerTest$Register 4 0 0 0 100% 0.259 s
AuthenticationControllerTest$Login 3 0 0 0 100% 0.293 s

api.services.storage

- Class Tests Errors Failures Skipped Success Rate Time
SimpleStorageServiceTest 113 0 0 0 100% 1.398 s
S3ObjectServiceTest 1 0 0 0 100% 14.39 s

api.controllers.users

- Class Tests Errors Failures Skipped Success Rate Time
UserAvatarControllerTest$DeleteUserAvatar 8 0 0 0 100% 1.639 s
UserAvatarControllerTest$UpdateUserAvatar 26 0 0 0 100% 4.769 s
UserAvatarControllerTest$GetUserAvatar 8 0 0 0 100% 1.479 s
UserAvatarControllerTest$UpdateMyAvatar 19 0 0 0 100% 3.234 s
UserAvatarControllerTest$DeleteMyAvatar 7 0 0 0 100% 1.328 s
UserAvatarControllerTest$GetMyAvatar 11 0 0 0 100% 2.053 s
UserControllerTest$DeleteUser 3 0 0 0 100% 0.691 s
UserControllerTest$UpdateUser 8 0 0 0 100% 1.569 s
UserControllerTest$GetUser 3 0 0 0 100% 0.497 s
UserControllerTest$GetUsers 4 0 0 0 100% 0.260 s
UserControllerTest$UpdateMe 6 0 0 0 100% 1.149 s
UserControllerTest$DeleteMe 7 0 0 0 100% 1.383 s
UserControllerTest$GetMe 7 0 0 0 100% 1.200 s
UserControllerTest$UpdateMyPassword 2 0 0 0 100% 0.708 s
UserRoleControllerTest$RemoveUserRoles 4 0 0 0 100% 0.233 s
UserRoleControllerTest$AddUserRoles 5 0 0 0 100% 0.259 s
UserRoleControllerTest$SetUserRoles 4 0 0 0 100% 0.232 s
UserRoleControllerTest$GetUserRoles 3 0 0 0 100% 0.204 s

Test Cases

[Summary] [Package List] [Test Cases]

UserAvatarControllerTest$DeleteUserAvatar

should404_whenUserNonexistent 0.186 s
shouldGetUserAvatar(String)[1] 0.268 s
shouldGetUserAvatar(String)[2] 0.206 s
shouldGetUserAvatar(String)[3] 0.203 s
shouldGetUserAvatar(String)[4] 0.215 s
shouldGetUserAvatar(String)[5] 0.217 s
should403_whenUnauthorized 0.171 s
should404_whenAvatarNonexistent 0.173 s

UserAvatarControllerTest$UpdateUserAvatar

should404_whenUserNonexistent 0.174 s
should403_whenUnauthorized 0.173 s
should400_whenMediaTypeInvalid(String)[1] 0.180 s
should400_whenMediaTypeInvalid(String)[2] 0.177 s
should400_whenMediaTypeInvalid(String)[3] 0.180 s
should400_whenMediaTypeInvalid(String)[4] 0.172 s
should400_whenTooLarge(String)[1] 0.177 s
should400_whenTooLarge(String)[2] 0.174 s
should400_whenTooLarge(String)[3] 0.174 s
should400_whenTooLarge(String)[4] 0.170 s
should400_whenTooLarge(String)[5] 0.176 s
should400_whenFileNull(String)[1] 0.173 s
should400_whenFileNull(String)[2] 0.174 s
should400_whenFileNull(String)[3] 0.171 s
should400_whenFileNull(String)[4] 0.173 s
should400_whenFileNull(String)[5] 0.169 s
shouldReplaceOldAvatar(String)[1] 0.214 s
shouldReplaceOldAvatar(String)[2] 0.207 s
shouldReplaceOldAvatar(String)[3] 0.224 s
shouldReplaceOldAvatar(String)[4] 0.216 s
shouldReplaceOldAvatar(String)[5] 0.209 s
shouldUpdateUserAvatar(String)[1] 0.183 s
shouldUpdateUserAvatar(String)[2] 0.179 s
shouldUpdateUserAvatar(String)[3] 0.185 s
shouldUpdateUserAvatar(String)[4] 0.183 s
shouldUpdateUserAvatar(String)[5] 0.182 s

UserAvatarControllerTest$GetUserAvatar

should404_whenUserNonexistent 0.176 s
should403_whenUnauthorized 0.170 s
should404_whenAvatarNonexistent 0.175 s
shouldGetUserAvatar(String, String)[1] 0.202 s
shouldGetUserAvatar(String, String)[2] 0.188 s
shouldGetUserAvatar(String, String)[3] 0.192 s
shouldGetUserAvatar(String, String)[4] 0.189 s
shouldGetUserAvatar(String, String)[5] 0.187 s

UserAvatarControllerTest$UpdateMyAvatar

should400_whenMediaTypeInvalid(String)[1] 0.183 s
should400_whenMediaTypeInvalid(String)[2] 0.166 s
should400_whenMediaTypeInvalid(String)[3] 0.164 s
should400_whenMediaTypeInvalid(String)[4] 0.172 s
should400_whenTooLarge(String)[1] 0.166 s
should400_whenTooLarge(String)[2] 0.166 s
should400_whenTooLarge(String)[3] 0.166 s
should400_whenTooLarge(String)[4] 0.166 s
should400_whenTooLarge(String)[5] 0.166 s
should400_whenFileNull(String)[1] 0.165 s
should400_whenFileNull(String)[2] 0.166 s
should400_whenFileNull(String)[3] 0.165 s
should400_whenFileNull(String)[4] 0.164 s
should400_whenFileNull(String)[5] 0.164 s
shouldUpdateMyAvatar(String)[1] 0.184 s
shouldUpdateMyAvatar(String)[2] 0.180 s
shouldUpdateMyAvatar(String)[3] 0.179 s
shouldUpdateMyAvatar(String)[4] 0.176 s
shouldUpdateMyAvatar(String)[5] 0.176 s

UserAvatarControllerTest$DeleteMyAvatar

shouldDeleteMyAvatar(String)[1] 0.201 s
shouldDeleteMyAvatar(String)[2] 0.193 s
shouldDeleteMyAvatar(String)[3] 0.191 s
shouldDeleteMyAvatar(String)[4] 0.189 s
shouldDeleteMyAvatar(String)[5] 0.191 s
shouldDeleteAvatar_whenUserDeleted 0.197 s
should404_whenNonexistent 0.166 s

UserAvatarControllerTest$GetMyAvatar

should404_whenNonexistent 0.164 s
shouldGetMyAvatar(String, String)[1] 0.186 s
shouldGetMyAvatar(String, String)[2] 0.184 s
shouldGetMyAvatar(String, String)[3] 0.178 s
shouldGetMyAvatar(String, String)[4] 0.182 s
shouldGetMyAvatar(String, String)[5] 0.181 s
shouldGetMyAvatar_whenAvatarChanged(String, String)[1] 0.196 s
shouldGetMyAvatar_whenAvatarChanged(String, String)[2] 0.198 s
shouldGetMyAvatar_whenAvatarChanged(String, String)[3] 0.196 s
shouldGetMyAvatar_whenAvatarChanged(String, String)[4] 0.196 s
shouldGetMyAvatar_whenAvatarChanged(String, String)[5] 0.192 s

HeartbeatControllerTest

shouldReturnTrue_whenHeartbeat 0.011 s

SimpleStorageServiceTest

shouldMatchCaseSensitive 0.069 s
shouldMatchEdgeCases(String, byte[], long)[1] 0.051 s
shouldMatchEdgeCases(String, byte[], long)[2] 0.029 s
shouldMatchEdgeCases(String, byte[], long)[3] 0.035 s
shouldMatchEdgeCases(String, byte[], long)[4] 0.031 s
shouldMatchEdgeCases(String, byte[], long)[5] 0.029 s
shouldMatchEdgeCases(String, byte[], long)[6] 0.028 s
shouldMatchEdgeCases(String, byte[], long)[7] 0.028 s
shouldMatchEdgeCases(String, byte[], long)[8] 0.031 s
shouldMatchEdgeCases(String, byte[], long)[9] 0.039 s
shouldMatchEdgeCases(String, byte[], long)[10] 0.025 s
shouldMatchEdgeCases(String, byte[], long)[11] 0.027 s
shouldMatchEdgeCases(String, byte[], long)[12] 0.034 s
shouldMatchEdgeCases(String, byte[], long)[13] 0.025 s
shouldMatchEdgeCases(String, byte[], long)[14] 0.025 s
shouldMatchEdgeCases(String, byte[], long)[15] 0.007 s
shouldMatchEdgeCases(String, byte[], long)[16] 0.006 s
shouldMatchEdgeCases(String, byte[], long)[17] 0.006 s
shouldMatchEdgeCases(String, byte[], long)[18] 0.007 s
shouldMatchEdgeCases(String, byte[], long)[19] 0.005 s
shouldMatchEdgeCases(String, byte[], long)[20] 0.007 s
shouldMatchEdgeCases(String, byte[], long)[21] 0.007 s
shouldMatchEdgeCases(String, byte[], long)[22] 0.006 s
shouldMatchEdgeCases(String, byte[], long)[23] 0.005 s
shouldMatchEdgeCases(String, byte[], long)[24] 0.005 s
shouldMatchEdgeCases(String, byte[], long)[25] 0.006 s
shouldMatchEdgeCases(String, byte[], long)[26] 0.006 s
shouldMatchEdgeCases(String, byte[], long)[27] 0.005 s
shouldMatchEdgeCases(String, byte[], long)[28] 0.005 s
shouldMatchEdgeCases(String, byte[], long)[29] 0.008 s
shouldMatchEdgeCases(String, byte[], long)[30] 0.005 s
shouldMatchEdgeCases(String, byte[], long)[31] 0.005 s
shouldMatchEdgeCases(String, byte[], long)[32] 0.005 s
shouldMatchEdgeCases(String, byte[], long)[33] 0.005 s
shouldMatchEdgeCases(String, byte[], long)[34] 0.006 s
shouldMatchEdgeCases(String, byte[], long)[35] 0.005 s
shouldMatchEdgeCases(String, byte[], long)[36] 0.005 s
shouldMatchEdgeCases(String, byte[], long)[37] 0.004 s
shouldMatchEdgeCases(String, byte[], long)[38] 0.005 s
shouldMatchEdgeCases(String, byte[], long)[39] 0.005 s
shouldMatchEdgeCases(String, byte[], long)[40] 0.004 s
shouldMatchEdgeCases(String, byte[], long)[41] 0.005 s
shouldMatchEdgeCases(String, byte[], long)[42] 0.005 s
shouldMatchEdgeCases(String, byte[], long)[43] 0.005 s
shouldMatchEdgeCases(String, byte[], long)[44] 0.006 s
shouldMatchEdgeCases(String, byte[], long)[45] 0.005 s
shouldMatchEdgeCases(String, byte[], long)[46] 0.005 s
shouldMatchEdgeCases(String, byte[], long)[47] 0.005 s
shouldMatchEdgeCases(String, byte[], long)[48] 0.005 s
shouldMatchEdgeCases(String, byte[], long)[49] 0.004 s
shouldMatchEdgeCases(String, byte[], long)[50] 0.005 s
shouldMatchEdgeCases(String, byte[], long)[51] 0.004 s
shouldMatchEdgeCases(String, byte[], long)[52] 0.004 s
shouldMatchEdgeCases(String, byte[], long)[53] 0.005 s
shouldMatchEdgeCases(String, byte[], long)[54] 0.004 s
shouldMatchEdgeCases(String, byte[], long)[55] 0.004 s
shouldMatchEdgeCases(String, byte[], long)[56] 0.004 s
shouldMatchEdgeCases(String, byte[], long)[57] 0.004 s
shouldMatchEdgeCases(String, byte[], long)[58] 0.004 s
shouldMatchEdgeCases(String, byte[], long)[59] 0.004 s
shouldMatchEdgeCases(String, byte[], long)[60] 0.005 s
shouldMatchEdgeCases(String, byte[], long)[61] 0.004 s
shouldMatchEdgeCases(String, byte[], long)[62] 0.006 s
shouldMatchEdgeCases(String, byte[], long)[63] 0.004 s
shouldMatchEdgeCases(String, byte[], long)[64] 0.005 s
shouldMatchEdgeCases(String, byte[], long)[65] 0.004 s
shouldMatchEdgeCases(String, byte[], long)[66] 0.004 s
shouldMatchEdgeCases(String, byte[], long)[67] 0.004 s
shouldMatchEdgeCases(String, byte[], long)[68] 0.004 s
shouldMatchEdgeCases(String, byte[], long)[69] 0.006 s
shouldMatchEdgeCases(String, byte[], long)[70] 0.017 s
shouldMatchEdgeCases(String, byte[], long)[71] 0.004 s
shouldMatchEdgeCases(String, byte[], long)[72] 0.003 s
shouldMatchEdgeCases(String, byte[], long)[73] 0.004 s
shouldMatchEdgeCases(String, byte[], long)[74] 0.004 s
shouldMatchEdgeCases(String, byte[], long)[75] 0.003 s
shouldMatchEdgeCases(String, byte[], long)[76] 0.005 s
shouldMatchEdgeCases(String, byte[], long)[77] 0.003 s
shouldMatchEdgeCases(String, byte[], long)[78] 0.004 s
shouldMatchEdgeCases(String, byte[], long)[79] 0.004 s
shouldMatchEdgeCases(String, byte[], long)[80] 0.004 s
shouldMatchEdgeCases(String, byte[], long)[81] 0.004 s
shouldMatchEdgeCases(String, byte[], long)[82] 0.004 s
shouldMatchEdgeCases(String, byte[], long)[83] 0.005 s
shouldMatchEdgeCases(String, byte[], long)[84] 0.005 s
shouldMatchEdgeCases(String, byte[], long)[85] 0.004 s
shouldMatchEdgeCases(String, byte[], long)[86] 0.004 s
shouldMatchEdgeCases(String, byte[], long)[87] 0.004 s
shouldMatchEdgeCases(String, byte[], long)[88] 0.004 s
shouldMatchEdgeCases(String, byte[], long)[89] 0.004 s
shouldMatchEdgeCases(String, byte[], long)[90] 0.005 s
shouldMatchEdgeCases(String, byte[], long)[91] 0.004 s
shouldMatchEdgeCases(String, byte[], long)[92] 0.003 s
shouldMatchEdgeCases(String, byte[], long)[93] 0.003 s
shouldMatchEdgeCases(String, byte[], long)[94] 0.004 s
shouldMatchEdgeCases(String, byte[], long)[95] 0.005 s
shouldMatchEdgeCases(String, byte[], long)[96] 0.003 s
shouldMatchEdgeCases(String, byte[], long)[97] 0.003 s
shouldMatchEdgeCases(String, byte[], long)[98] 0.004 s
shouldMatchEdgeCases(String, byte[], long)[99] 0.004 s
shouldMatchEdgeCases(String, byte[], long)[100] 0.004 s
shouldMatchEdgeCases(String, byte[], long)[101] 0.004 s
shouldMatchEdgeCases(String, byte[], long)[102] 0.004 s
shouldMatchEdgeCases(String, byte[], long)[103] 0.004 s
shouldMatchEdgeCases(String, byte[], long)[104] 0.004 s
shouldMatchEdgeCases(String, byte[], long)[105] 0.004 s
shouldMatchEdgeCases(String, byte[], long)[106] 0.004 s
shouldMatchEdgeCases(String, byte[], long)[107] 0.004 s
shouldMatchEdgeCases(String, byte[], long)[108] 0.004 s
shouldMatchEdgeCases(String, byte[], long)[109] 0.004 s
shouldMatchEdgeCases(String, byte[], long)[110] 0.003 s
shouldMatchEdgeCases(String, byte[], long)[111] 0.004 s
shouldMatchEdgeCases(String, byte[], long)[112] 0.004 s

AuthorityControllerTest$GetAuthority

shouldGetAuthority 0.018 s
should403_whenUnauthorized 0.166 s
should404_whenNonexistent 0.013 s

AuthorityControllerTest$GetAuthorities

should403_whenUnauthorized 0.174 s
shouldGetAuthorities 0.017 s

UserControllerTest$DeleteUser

shouldDeleteUser 0.336 s
should403_whenUnauthorized 0.179 s
should404_whenNonexistent 0.176 s

UserControllerTest$UpdateUser

should403_whenUnauthorized 0.167 s
should404_whenNonexistent 0.180 s
shouldUpdateUser_whenUsernameChanged 0.200 s
shouldUpdateUser_whenUsernameNotChanged 0.178 s
should409_whenDuplicateUsername 0.328 s
shouldUpdateUser_whenSomeNullValues 0.171 s
should400_whenUsernameEmpty 0.177 s
shouldUpdateUser_whenBodyIdIncorrect 0.168 s

UserControllerTest$GetUser

should403_whenUnauthorized 0.165 s
should404_whenNonexistent 0.166 s
shouldGetUser 0.166 s

UserControllerTest$GetUsers

should403_whenUnauthorized 0.167 s
shouldGetUsers_whenQueryParametersExceedLimit 0.062 s
shouldGetUsers_whenNoQueryParameters 0.017 s
shouldGetUsers_whenQueryParameters 0.014 s

UserControllerTest$UpdateMe

should409_whenDuplicateUsername 0.319 s
should400_whenUsernameEmpty 0.165 s
shouldUpdateMe_whenUsernameChanged 0.168 s
shouldUpdateMe_whenUsernameNotChanged 0.167 s
shouldUpdateMe_whenSomeNullValues 0.166 s
shouldUpdateMe_whenIdIncorrect 0.164 s

UserControllerTest$DeleteMe

shouldDeleteMe_whenBasicAuthentication 0.249 s
shouldDeleteMe_whenJwtAuthentication 0.167 s
should401_whenNoAuthentication 0.165 s
should401_whenJwtAuthenticationInvalid 0.162 s
should401_whenBasicAuthenticationIncorrectUsername 0.238 s
should401_whenJwtAuthenticationExpires 0.165 s
should401_whenBasicAuthenticationIncorrectPassword 0.237 s

UserControllerTest$GetMe

should401_whenNoAuthentication 0.006 s
should401_whenJwtAuthenticationInvalid 0.160 s
should401_whenBasicAuthenticationIncorrectUsername 0.235 s
should401_whenJwtAuthenticationExpires 0.160 s
should401_whenBasicAuthenticationIncorrectPassword 0.235 s
shouldGetMe_whenJwtAuthentication 0.170 s
shouldGetMe_whenBasicAuthentication 0.234 s

UserControllerTest$UpdateMyPassword

should400_whenPasswordUnchanged 0.241 s
shouldUpdateMyPassword 0.467 s

S3ObjectServiceTest

saveShouldFail_whenSizeTooLarge 0.152 s

UserRoleControllerTest$RemoveUserRoles

shouldNotRemoveUserRoles_whenRolesNotFound 0.028 s
should403_whenUnauthorized 0.166 s
shouldRemoveUserRoles 0.025 s
should404_whenNonexistentUser 0.014 s

UserRoleControllerTest$AddUserRoles

should403_whenUnauthorized 0.165 s
should404_whenNonexistentUser 0.014 s
shouldAddUserRoles_whenRolesNotFound 0.026 s
shouldNotAddUserRoles_whenRolesAlreadyAdded 0.025 s
shouldAddUserRoles 0.029 s

UserRoleControllerTest$SetUserRoles

should403_whenUnauthorized 0.165 s
should404_whenNonexistentUser 0.013 s
shouldSetUserRoles 0.031 s
shouldSetUserRoles_whenRolesNotFound 0.023 s

UserRoleControllerTest$GetUserRoles

should403_whenUnauthorized 0.169 s
should404_whenNonexistentUser 0.014 s
shouldGetUserRoles 0.021 s

RoleControllerTest$DeleteRole

shouldDeleteRole_whenUsed 0.812 s
shouldDeleteRole 0.063 s
should400_whenDeleteAdminRole 0.113 s
should403_whenUnauthorized 0.205 s
should404_whenNonexistent 0.027 s
should400_whenDeleteUserRole 0.030 s

RoleControllerTest$UpdateRole

should403_whenUnauthorized 0.192 s
shouldUpdateRole_whenUpdateName 0.086 s
should400_whenNameEmpty 0.029 s
shouldUpdateRole_whenNameNotChanged 0.079 s
shouldUpdateRole_whenUpdateAuthorities 0.049 s
should409_whenDuplicateName 0.035 s
should404_whenRoleNonexistent 0.031 s
should400_whenAdminRole 0.029 s
shouldUpdateRole_whenBodyIdIncorrect 0.038 s
shouldUpdateWithoutAuthority_whenAuthorityNonexistent 0.036 s

RoleControllerTest$CreateRole

should403_whenUnauthorized 0.179 s
should400_whenNameEmpty 0.032 s
shouldCreateRole 0.032 s
should409_whenDuplicateRoleName 0.026 s
shouldCreateWithoutAuthority_whenAuthorityNonexistent 0.027 s

RoleControllerTest$GetRole

should403_whenUnauthorized 0.182 s
should404_whenNonexistent 0.021 s
shouldContainAllAuthorities_whenGetAdminRole 0.036 s
shouldGetRole 0.024 s

RoleControllerTest$GetRoles

should403_whenUnauthorized 0.177 s
shouldGetRoles 0.047 s

AuthenticationControllerTest$Register

shouldRegister_whenNewUser 0.201 s
should400_whenEmptyPassword 0.026 s
should409_whenDuplicateUsername 0.019 s
should400_whenEmptyUsername 0.013 s

AuthenticationControllerTest$Login

should401_whenIncorrectUsername 0.115 s
shouldLogin_whenAdmin 0.088 s
should401_whenIncorrectPassword 0.090 s