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:
Mark Rogers
2009-04-02 16:35:31 +00:00
parent 85d506f860
commit 8b86152153
7 changed files with 377 additions and 12 deletions

View File

@@ -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);
}