mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Build fix for breaking test case.
Bug fix invitation service was approving too many invitations! Implemented security rules for who is allowed to cancel a moderated invitation. Continuing implementation of group authority scripts. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@13815 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -761,19 +761,13 @@ public class InvitationServiceImplTest extends BaseAlfrescoSpringTest
|
||||
|
||||
|
||||
/**
|
||||
* Negative test - search with an empty criteria
|
||||
* Search with an empty criteria - should find all open invitations
|
||||
*/
|
||||
InvitationSearchCriteria crit2 = new InvitationSearchCriteriaImpl();
|
||||
try
|
||||
{
|
||||
List<Invitation> resSix = invitationService.searchInvitation(crit2);
|
||||
assertTrue("exception not thrown", false);
|
||||
}
|
||||
catch (InvitationExceptionUserError e)
|
||||
{
|
||||
// Should go here - no criteria
|
||||
}
|
||||
|
||||
List<Invitation> resSix = invitationService.searchInvitation(crit2);
|
||||
assertTrue("search everything returned 0 elements", resFive.size() > 0);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user