mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
Test added
This commit is contained in:
@@ -65,6 +65,8 @@ import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.junit.After;
|
||||
import org.junit.Before;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
import org.springframework.test.annotation.Commit;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
import org.springframework.util.ReflectionUtils;
|
||||
@@ -202,9 +204,7 @@ public abstract class AbstractInvitationServiceImplTest extends BaseAlfrescoSpri
|
||||
* end of setup now for some real tests
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@Test
|
||||
public void testConfiguration()
|
||||
{
|
||||
assertNotNull("Invitation service is null", invitationService);
|
||||
@@ -216,6 +216,7 @@ public abstract class AbstractInvitationServiceImplTest extends BaseAlfrescoSpri
|
||||
*
|
||||
* @throws Exception
|
||||
*/
|
||||
@Test
|
||||
public void testInternalUserNotDeletedAfterInviteCancelled() throws Exception
|
||||
{
|
||||
// Disable our existing User
|
||||
@@ -257,6 +258,7 @@ public abstract class AbstractInvitationServiceImplTest extends BaseAlfrescoSpri
|
||||
*
|
||||
* @throws Exception
|
||||
*/
|
||||
@Test
|
||||
public void testExternalUserDeletedAfterInviteCancelled() throws Exception
|
||||
{
|
||||
String inviteeFirstName = PERSON_FIRSTNAME;
|
||||
@@ -290,6 +292,7 @@ public abstract class AbstractInvitationServiceImplTest extends BaseAlfrescoSpri
|
||||
*
|
||||
* @throws Exception
|
||||
*/
|
||||
@Test
|
||||
public void testNominatedInvitationNewUser() throws Exception
|
||||
{
|
||||
Calendar calendar = Calendar.getInstance();
|
||||
@@ -467,6 +470,7 @@ public abstract class AbstractInvitationServiceImplTest extends BaseAlfrescoSpri
|
||||
*
|
||||
* @throws Exception
|
||||
*/
|
||||
@Test
|
||||
public void testNominatedInvitationNewUserReject() throws Exception
|
||||
{
|
||||
Calendar calendar = Calendar.getInstance();
|
||||
@@ -543,6 +547,7 @@ public abstract class AbstractInvitationServiceImplTest extends BaseAlfrescoSpri
|
||||
*
|
||||
* @throws Exception
|
||||
*/
|
||||
@Test
|
||||
public void testNominatedInvitationNewUserSameEmails() throws Exception
|
||||
{
|
||||
String inviteeAFirstName = "John";
|
||||
@@ -624,6 +629,7 @@ public abstract class AbstractInvitationServiceImplTest extends BaseAlfrescoSpri
|
||||
siteService.removeMembership(resourceName, inviteeBUserName);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testMNT11775() throws Exception
|
||||
{
|
||||
String inviteeUserName = USER_TWO;
|
||||
@@ -693,6 +699,7 @@ public abstract class AbstractInvitationServiceImplTest extends BaseAlfrescoSpri
|
||||
*
|
||||
* @throws Exception
|
||||
*/
|
||||
@Test
|
||||
public void test_MNT15614() throws Exception
|
||||
{
|
||||
String[] siteNames = {"it", "site", "GROUP"};
|
||||
@@ -726,6 +733,7 @@ public abstract class AbstractInvitationServiceImplTest extends BaseAlfrescoSpri
|
||||
* Test nominated user - new user with whitespace in name. Related to
|
||||
* ETHREEOH-3030.
|
||||
*/
|
||||
@Test
|
||||
public void testNominatedInvitationNewUserWhitespace() throws Exception
|
||||
{
|
||||
String inviteeFirstName = PERSON_FIRSTNAME_SPACES;
|
||||
@@ -919,6 +927,7 @@ public abstract class AbstractInvitationServiceImplTest extends BaseAlfrescoSpri
|
||||
siteService.removeMembership(resourceName, inviteeUserName);
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testNominatedInvitationExistingUser() throws Exception
|
||||
{
|
||||
this.invitationServiceImpl.setNominatedInvitationWorkflowId(
|
||||
@@ -931,6 +940,7 @@ public abstract class AbstractInvitationServiceImplTest extends BaseAlfrescoSpri
|
||||
* moderated invitation Reject the invitation Create a moderated invitation
|
||||
* Approve the invitation
|
||||
*/
|
||||
@Test
|
||||
public void testModeratedInvitation()
|
||||
{
|
||||
String inviteeUserName = USER_TWO;
|
||||
@@ -1021,6 +1031,7 @@ public abstract class AbstractInvitationServiceImplTest extends BaseAlfrescoSpri
|
||||
/**
|
||||
* Create a moderated invitation for workspace client Get it Search for it Cancel it
|
||||
*/
|
||||
@Test
|
||||
public void testWorkspaceModeratedInvitation()
|
||||
{
|
||||
String inviteeUserName = USER_TWO;
|
||||
@@ -1099,6 +1110,7 @@ public abstract class AbstractInvitationServiceImplTest extends BaseAlfrescoSpri
|
||||
/**
|
||||
* Test the approval of a moderated invitation
|
||||
*/
|
||||
@Test
|
||||
public void testModeratedApprove()
|
||||
{
|
||||
String inviteeUserName = USER_TWO;
|
||||
@@ -1168,6 +1180,7 @@ public abstract class AbstractInvitationServiceImplTest extends BaseAlfrescoSpri
|
||||
/**
|
||||
* Tests of Moderated Reject
|
||||
*/
|
||||
@Test
|
||||
public void testModeratedReject()
|
||||
{
|
||||
String inviteeUserName = USER_TWO;
|
||||
@@ -1226,6 +1239,7 @@ public abstract class AbstractInvitationServiceImplTest extends BaseAlfrescoSpri
|
||||
/**
|
||||
* Test search invitation
|
||||
*/
|
||||
@Test
|
||||
public void testSearchInvitation()
|
||||
{
|
||||
/**
|
||||
@@ -1318,6 +1332,7 @@ public abstract class AbstractInvitationServiceImplTest extends BaseAlfrescoSpri
|
||||
/**
|
||||
* test that the search limiter works
|
||||
*/
|
||||
@Test
|
||||
public void testSearchInvitationWithLimit() throws Exception
|
||||
{
|
||||
Invitation.ResourceType resourceType = Invitation.ResourceType.WEB_SITE;
|
||||
@@ -1360,6 +1375,7 @@ public abstract class AbstractInvitationServiceImplTest extends BaseAlfrescoSpri
|
||||
/**
|
||||
* MNT-17341 : External users with Manager role cannot invite other external users to the site because site invitation accept fails
|
||||
*/
|
||||
@Test
|
||||
public void testExternalUserManagerInvitingAnotherExternalUser() throws Exception{
|
||||
String inviteeFirstName = PERSON_FIRSTNAME;
|
||||
String inviteeLastName = PERSON_LASTNAME;
|
||||
@@ -1412,6 +1428,8 @@ public abstract class AbstractInvitationServiceImplTest extends BaseAlfrescoSpri
|
||||
|
||||
}
|
||||
|
||||
@Ignore
|
||||
@Test
|
||||
@Commit
|
||||
public void disabled_test100Invites() throws Exception
|
||||
{
|
||||
@@ -1445,6 +1463,7 @@ public abstract class AbstractInvitationServiceImplTest extends BaseAlfrescoSpri
|
||||
assertEquals(invite.getInviteId(), results.get(0).getInviteId());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testGetInvitation()
|
||||
{
|
||||
try
|
||||
|
Reference in New Issue
Block a user