Surefire Report

Summary

[Summary] [Package List] [Test Cases]


Tests Errors Failures Skipped Success Rate Time
224 0 0 0 100% 77.446

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
org.exoplatform.social.service.rest.api.models 8 0 0 0 100% 0.457
org.exoplatform.social.service.rest.notification 11 0 0 0 100% 2.968
org.exoplatform.social.rest.impl.identity 1 0 0 0 100% 0.084
org.exoplatform.social.service.rest.api 84 0 0 0 100% 22.298
org.exoplatform.social.rest.impl.spacesadministration 12 0 0 0 100% 0.734
org.exoplatform.social.rest.impl.space 8 0 0 0 100% 4.101
org.exoplatform.social.service.test 3 0 0 0 100% 0.167
org.exoplatform.social.rest.impl.spacemembership 7 0 0 0 100% 9.873
org.exoplatform.social.rest.impl.relationship 4 0 0 0 100% 0.281
org.exoplatform.social.rest.impl.users 7 0 0 0 100% 2.024
org.exoplatform.social.rest.impl.activity 11 0 0 0 100% 1.189
org.exoplatform.social.rest.impl.comment 4 0 0 0 100% 1.528
org.exoplatform.social.service.rest 61 0 0 0 100% 31.521
org.exoplatform.social.rest.impl.userrelationship 3 0 0 0 100% 0.221

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

org.exoplatform.social.service.rest.api.models

Class Tests Errors Failures Skipped Success Rate Time
ActivityRestInTest 3 0 0 0 100% 0.17
ActivityStreamRestOutTest 2 0 0 0 100% 0.111
CommentRestInTest 3 0 0 0 100% 0.176

org.exoplatform.social.service.rest.notification

Class Tests Errors Failures Skipped Success Rate Time
IntranetNotificationsRestServiceTest 11 0 0 0 100% 2.968

org.exoplatform.social.rest.impl.identity

Class Tests Errors Failures Skipped Success Rate Time
IdentityRestResourcesTest 1 0 0 0 100% 0.084

org.exoplatform.social.service.rest.api

Class Tests Errors Failures Skipped Success Rate Time
ActivityResourcesTest 19 0 0 0 100% 2.469
ActivityStreamResourcesTest 50 0 0 0 100% 18.956
IdentityResourcesTest 11 0 0 0 100% 0.641
VersionResourcesTest 4 0 0 0 100% 0.232

org.exoplatform.social.rest.impl.spacesadministration

Class Tests Errors Failures Skipped Success Rate Time
SpacesAdministrationRestResourcesTest 12 0 0 0 100% 0.734

org.exoplatform.social.rest.impl.space

Class Tests Errors Failures Skipped Success Rate Time
SpaceRestResourcesTest 8 0 0 0 100% 4.101

org.exoplatform.social.service.test

Class Tests Errors Failures Skipped Success Rate Time
UtilTest 3 0 0 0 100% 0.167

org.exoplatform.social.rest.impl.spacemembership

Class Tests Errors Failures Skipped Success Rate Time
SpaceMembershipRestResourcesTest 7 0 0 0 100% 9.873

org.exoplatform.social.rest.impl.relationship

Class Tests Errors Failures Skipped Success Rate Time
RelationshipsRestResourcesTest 4 0 0 0 100% 0.281

org.exoplatform.social.rest.impl.users

Class Tests Errors Failures Skipped Success Rate Time
UserRestResourcesTest 7 0 0 0 100% 2.024

org.exoplatform.social.rest.impl.activity

Class Tests Errors Failures Skipped Success Rate Time
ActivityRestResourcesTest 11 0 0 0 100% 1.189

org.exoplatform.social.rest.impl.comment

Class Tests Errors Failures Skipped Success Rate Time
CommentRestResourcesTest 4 0 0 0 100% 1.528

org.exoplatform.social.service.rest

Class Tests Errors Failures Skipped Success Rate Time
SpaceRestServiceTest 5 0 0 0 100% 23.602
ActivitiesRestServiceTest 7 0 0 0 100% 0.445
IdentityRestServiceTest 2 0 0 0 100% 0.121
LinkShareRestServiceTest 5 0 0 0 100% 0.536
RestCheckerTest 3 0 0 0 100% 0.167
SecurityManagerTest 9 0 0 0 100% 2.713
UtilTest 12 0 0 0 100% 0.714
NotificationsRestServiceTest 18 0 0 0 100% 3.223

org.exoplatform.social.rest.impl.userrelationship

Class Tests Errors Failures Skipped Success Rate Time
UsersRelationshipsRestResourcesTest 3 0 0 0 100% 0.221

Test Cases

[Summary] [Package List] [Test Cases]

SpaceRestServiceTest

testGetSpacesLastVisited 8.668
testSuggestSpacesOfNoUser 4.483
testSuggestSpacesOfAnotherUser 3.76
testGetSpacesLastVisitedAppIdNull 3.582
testSuggestSpacesOfCurrentUser 3.109

ActivityResourcesTest

testCreateLikeActivityById 0.11
testDeleteComment 0.134
testDeletePOSTActivityWithJsonFormat 0.087
testGetActivityByIdWithJsonFormat 0.911
testDeleteActivityWithJsonFormat 0.102
testDeleteLikeGeneralCase 0.068
testPostLikeGeneralCase 0.08
testDeleteCommentGeneralCase 0.069
testCreateNewActivityWithJsonFormat 0.074
testPostCommentGeneralCase 0.078
testDeleteActivityGeneralCase 0.073
testGetLikedIdentities 0.074
testDeleteLikeActivityById 0.098
testPostActivityGeneralCase 0.074
testGetCommentsGeneralCase 0.067
testCreateComment 0.095
testGetComments 0.093
testGetActivityByIdGeneralCase 0.075
testCreateNewActivityForAccess 0.107

ActivityStreamResourcesTest

testMaxIdGetActivityConnectionsOfAuthenticatedWithJsonFormat 0.124
testSinceIdGetActivityConnectionsOfAuthenticatedWithJsonFormat 0.168
testMeParamGetActivityStreamByIdentityIdWithJsonFormatWithTimestamp 0.118
testDefaultGetActivitySpacesOfAuthenticatedWithJsonFormatWithTimestamp 0.151
testFullParamsGetActivityConnectionsOfAuthenticatedWithJsonFormat 0.32
testGetActivityFeedOfAuthenticatedGeneralCase 0.066
testLimitGetActivityFeedOfAuthenticatedWithJsonFormat 0.243
testNumberOfCommentsGetActivityStreamByIdentityWithJsonFormat 0.427
testLimitGetActivitySpacesOfAuthenticatedWithJsonFormat 0.144
testSinceIdGetActivitySpacesOfAuthenticatedWithJsonFormat 0.124
testGeneralCaseGetActivityConnectionsOfAuthenticated 0.075
testDefaultGetActivityConnectionsOfAuthenticatedWithJsonFormatWithTimestamp 0.121
testSinceTimeGetActivityConnectionsOfAuthenticatedWithJsonFormat 0.167
testMaxTimeGetActivityFeedByTimestampOfAuthenticatedWithJsonFormat 0.284
testMaxIdGetActivitySpacesOfAuthenticatedWithJsonFormat 0.137
testSinceIdGetActivityStreamByIdentityIdWithJsonFormat 0.203
testDefaultGetActivityStreamByIdentityIdWithJsonFormat 0.194
testDefaultGetActivitySpacesOfAuthenticatedWithJsonFormat 0.132
testAllInvalidOptionalQueryParamsGetActivityStreamByIdentityIdWithJsonFormat 0.21
testAllQueryParamsGetActivityStreamByIdentityIdWithJsonFormat 0.209
testMaxTimeGetActivityStreamByIdentityIdWithJsonFormat 0.187
testMaxTimeGetActivitySpacesOfAuthenticatedWithJsonFormat 0.118
testMaxIdGetActivityFeedOfAuthenticatedWithJsonFormat 0.191
testSinceIdGetActivityFeedOfAuthenticatedWithJsonFormat 0.251
testLimitGetActivityFeedByTimestampOfAuthenticatedWithJsonFormat 0.28
testGetActivitySpacesOfAuthenticatedGeneralCase 0.088
testNumberOfLikesGetActivityConnectionsOfAuthenticatedWithJsonFormat 0.206
testLimitGetActivityStreamByIdentityIdWithJsonFormat 0.287
testMaxIdGetActivityStreamByIdentityIdWithJsonFormat 0.253
testMaxTimeGetActivityConnectionsOfAuthenticatedWithJsonFormat 0.14
testNumberOfLikesGetActivitySpacesOfAuthenticatedWithJsonFormat 0.183
testDefaultGetActivityConnectionsOfAuthenticatedWithJsonFormat 0.125
testDefaultGetActivityFeedOfAuthenticatedWithJsonFormat 0.359
testAllQueryParamsGetActivityFeedOfAuthenticatedWithJsonFormat 6.22
testLimitGetActivityStreamByIdentityIdWithJsonFormatWithTimestamp 0.198
testLimitGetActivityConnectionsOfAuthenticatedWithJsonFormat 0.135
testNumberOfCommentsGetActivityFeedOfAuthenticatedWithJsonFormat 4.029
testNumberOfCommentsGetActivityConnectionsOfAuthenticatedWithJsonFormat 0.187
testSinceTimeGetActivityStreamByIdentityIdWithJsonFormat 0.166
testMeParamGetActivityStreamByIdentityIdWithJsonFormat 0.101
testDefaultGetActivityStreamByIdentityIdWithJsonFormatWithTimestamp 0.17
testGetActivityStreamByIdentityIdGeneralCase 0.067
testSinceTimeGetActivityFeedByTimestampOfAuthenticatedWithJsonFormat 0.21
testLimitGetActivityConnectionsOfAuthenticatedWithJsonFormatWithTimestamp 0.111
testNumberOfLikesGetActivityFeedOfAuthenticatedWithJsonFormat 0.391
testLimitGetActivitySpacesOfAuthenticatedWithJsonFormatWithTimestamp 0.114
testSinceTimeGetActivitySpacesOfAuthenticatedWithJsonFormat 0.161
testNumberOfLikesGetActivityStreamByIdentityIdWithJsonFormat 0.108
testNumberOfCommentsGetActivitySpacesOfAuthenticatedWithJsonFormat 0.126
testDefaultGetActivityFeedByTimestampOfAuthenticatedWithJsonFormat 0.177

IdentityResourcesTest

testGetIdentityByProviderIdAndRemoteIdWithWrongProviderId 0.059
testGetIdentityByProviderIdAndRemoteIdWithWrongRemoteId 0.057
testGetIdentityByProviderIdAndRemoteIdWithAnonymous 0.059
testGetIdentityByProviderIdAndRemoteIdWithWrongPortalContainerName 0.059
testGetIdentityByIdWithWrongIdentityId 0.058
testGetIdentityByIdWithWrongPortalContainerName 0.057
testGetIdentityByProviderIdAndRemoteIdWithWrongSupportedFormat 0.057
testGetIdentityByIdWithWrongSupportedFormat 0.058
testGetIdentityById 0.063
testGetIdentityByIdWithAnonymous 0.057
testGetIdentityProviderIdAndRemoteId 0.057

VersionResourcesTest

testGetLatestVersionWithJsonFormat 0.06
testGetSupportedVersionsWithJsonFormat 0.057
testGetLatestVersionWithXmlFormat 0.058
testGetSupportedVersionsWithXmlFormat 0.057

ActivitiesRestServiceTest

testShowLikes 0.06
testDestroyActivity 0.065
testDestroyComment 0.057
testUpdateLike 0.057
testShowComments 0.064
testUpdateComment 0.064
testDestroyLike 0.078

IdentityRestServiceTest

testGetJohnId 0.062
testGetRootId 0.059

LinkShareRestServiceTest

testJsonWrongLink 0.138
testXmlWrongLink 0.065
testBadRequest 0.056
testJsonRightLink 0.218
testXmlRightLink 0.059

RestCheckerTest

testCheckSupportedFormat 0.056
testCheckAuthenticatedRequest 0.055
testCheckValidPortalContainerName 0.056

SecurityManagerTest

testCanAccessActivitySpace 0.443
testCanAccessActivityUnknown 0.075
testCanDeleteActivity 0.371
testCanAccessActivityMine 0.071
testCanCommentToActivity 0.38
testCanAccessActivityNetwork 0.087
testCanAccessActivityStream 0.371
testCanPostActivity 0.471
testCanDeleteComment 0.444

UtilTest

testGetIdentityManager 0.06
testGetRelationshipManagerByPortalContainerName 0.061
testGetSpaceService 0.056
testGetSpaceServiceByPortalContainerName 0.056
testGetMediaType 0.057
testGetActivityManager 0.057
testGetBaseUrl 0.074
testConvertTimestampToTimeString 0.057
testGetRelationshipManager 0.057
testGetIdentityManagerByPortalContainerName 0.062
testGetPortalContainerByName 0.058
testGetActivityManagerByPortalContainerName 0.059

IntranetNotificationsRestServiceTest

testAuthorizedUserAcceptInvitation 0.375
testUnauthorizedUserAcceptInvitation 0.362
testIgnoreInvitationToConnect 0.064
testSecurityRestService 0.064
testShouldNotConfirmInvitationToConnectWhenSenderConfirmsTheInvitation 0.219
testShouldConfirmInvitationToConnectWhenReceiverConfirmsTheInvitation 0.069
testUnauthorizedUserRequestValidationByManagerWithNonInvitedUser 0.339
testUnauthorizedUserRequestValidationByNonManagerWithInvitedTargetUser 0.43
testAuthorizedUserRequestValidationByManager 0.402
testIgnoreInvitationToJoinSpace 0.344
testUnauthorizedUserRequestValidationByNonManagerWithNotInvitedTargetUser 0.3

NotificationsRestServiceTest

testViewFullDiscussion 0.068
testIgnoreInvitationToConnectNotAuthorizedWhenUserIsSender 0.064
testReplyActivity 0.064
testConfirmInvitationToConnectNotAuthorizedWhenUserIsSender 0.065
testIgnoreInvitationToConnect 0.064
testIgnoreInvitationToJoinSpaceNotAuthorized 0.38
testValidateRequestToJoinSpace 0.441
testConfirmInvitationToConnect 0.072
testInviteToConnectNotAuthorized 0.066
testValidateRequestToJoinSpaceNotAuthorized 0.342
testAcceptInvitationToJoinSpaceNotAuthorized 0.314
testInviteToConnect 0.068
testInviteToConnectNotAuthorizedWhenUserIsReceiver 0.067
testRedirectUrl 0.354
testConfirmInvitationToConnectNotAuthorized 0.066
testAcceptInvitationToJoinSpace 0.353
testIgnoreInvitationToConnectNotAuthorized 0.064
testIgnoreInvitationToJoinSpace 0.311

ActivityRestResourcesTest

testGetLikes 0.089
testGetActivitiesOfCurrentUser 0.075
testGetUpdatedDeletedActivityById 0.079
testGetSpaceActivity 0.348
testPostCommentReply 0.096
testGetComments 0.085
testPostComment 0.068
testDeleteLike 0.066
testPostLike 0.068
testGetCommentsWithReplies 0.149
testDeleteLikeWhenNoPermissionOnActivity 0.066

CommentRestResourcesTest

testShouldReturnCommentWhenEntityIsFound 0.35
testShouldNotReturnCommentWhenEntityIsNotFound 0.367
testGetSpaceActivity 0.395
testShouldReturnNotAuthorizedResponseWhenUserIsNotMemberOfSpace 0.416

IdentityRestResourcesTest

testGetIdentities 0.084

RelationshipsRestResourcesTest

testGetRelationships 0.083
testDeleteRelationshipById 0.064
testGetRelationshipById 0.066
testCreateRelationship 0.068

SpaceRestResourcesTest

testGetSpace 0.336
testCreateSpace 0.321
testShouldUseCacheWhenSpacesDidNotChanged 0.964
testSpaceVisibilityUpdateWithDifferentCases 0.374
testGetUsersSpaceById 0.36
testGetUpdateDeleteSpaceById 0.328
testGetSpaces 1.099
testGetActivitiesSpaceById 0.319

SpaceMembershipRestResourcesTest

testGetSpaceMembershipsOfASpaceAsAManager 1.433
testGetSpaceMembershipsOfAnotherUserAsANonSpacesAdministrator 1.327
testAddSpaceMemberShip 1.441
testGetUpdateDeleteSpaceMembership 1.441
testGetSpaceMembershipsOfAnotherUserAsASpacesAdministrator 1.253
testGetSpaceMembershipsOfASpaceAsANonMember 1.326
testGetSpaceMembersShipOfCurrentUser 1.652

SpacesAdministrationRestResourcesTest

testShouldReturnAllSpacesAdministratorsSettings 0.06
testShouldReturnEmptySpacesAdministratorsWhenSettingIsEmpty 0.056
testShouldReturnEmptySpacesCreatorsWhenSettingIsEmpty 0.058
testShouldUpdateSpacesAdministratorsWhenSpacesAdministrator 0.066
testShouldUpdateSpacesCreatorsWhenSpacesAdministrator 0.065
testShouldReturnNotAuthorizedWhenGettingSpacesAdministratorsAsNotSpacesAdministrator 0.057
testShouldReturnSpacesAdministratorsWhenSettingIsNotNull 0.062
testShouldReturnNotAuthorizedWhenGettingSpacesCreatorsAsNotPlatformAdministrator 0.073
testShouldNotAuthorizedWhenGettingAllSettingsAsNotPlatformAdministrator 0.059
testShouldNotAuthorizedWhenUpdatingSpacesCreatorsAsNotPlatformAdministrator 0.057
testShouldNotAuthorizedWhenUpdatingSpacesAdministratorsAsNotPlatformAdministrator 0.057
testShouldReturnSpacesCreatorsWhenSettingIsNotNull 0.064

UsersRelationshipsRestResourcesTest

testGetUpdateDeleteUserRelationship 0.083
testCreateUserRelationship 0.071
testGetUserRelationships 0.067

UserRestResourcesTest

testGetConnectionsOfUser 0.086
testGetOnlineUsers 0.066
testGetOnlineUsersOfSpace 0.31
testGetAllUsers 0.063
testGetActivitiesOfUser 0.086
testGetSpacesOfUser 1.351
testGetUserById 0.062

UtilTest

testGetDecodeQueryURL 0.056
testBuildLinkForHeader 0.056
testIsValidURL 0.055

ActivityRestInTest

testDefaultValues 0.054
testSetValues 0.059
testIsValid 0.057

ActivityStreamRestOutTest

testDefaultValues 0.056
testSetValues 0.055

CommentRestInTest

testDefaultValues 0.054
testSetValues 0.055
testIsValid 0.067