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.apache.commons.logging.LogFactory;
|
||||||
import org.junit.After;
|
import org.junit.After;
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
|
import org.junit.Ignore;
|
||||||
|
import org.junit.Test;
|
||||||
import org.springframework.test.annotation.Commit;
|
import org.springframework.test.annotation.Commit;
|
||||||
import org.springframework.transaction.annotation.Transactional;
|
import org.springframework.transaction.annotation.Transactional;
|
||||||
import org.springframework.util.ReflectionUtils;
|
import org.springframework.util.ReflectionUtils;
|
||||||
@@ -202,9 +204,7 @@ public abstract class AbstractInvitationServiceImplTest extends BaseAlfrescoSpri
|
|||||||
* end of setup now for some real tests
|
* end of setup now for some real tests
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
@Test
|
||||||
*
|
|
||||||
*/
|
|
||||||
public void testConfiguration()
|
public void testConfiguration()
|
||||||
{
|
{
|
||||||
assertNotNull("Invitation service is null", invitationService);
|
assertNotNull("Invitation service is null", invitationService);
|
||||||
@@ -216,6 +216,7 @@ public abstract class AbstractInvitationServiceImplTest extends BaseAlfrescoSpri
|
|||||||
*
|
*
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
|
@Test
|
||||||
public void testInternalUserNotDeletedAfterInviteCancelled() throws Exception
|
public void testInternalUserNotDeletedAfterInviteCancelled() throws Exception
|
||||||
{
|
{
|
||||||
// Disable our existing User
|
// Disable our existing User
|
||||||
@@ -257,6 +258,7 @@ public abstract class AbstractInvitationServiceImplTest extends BaseAlfrescoSpri
|
|||||||
*
|
*
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
|
@Test
|
||||||
public void testExternalUserDeletedAfterInviteCancelled() throws Exception
|
public void testExternalUserDeletedAfterInviteCancelled() throws Exception
|
||||||
{
|
{
|
||||||
String inviteeFirstName = PERSON_FIRSTNAME;
|
String inviteeFirstName = PERSON_FIRSTNAME;
|
||||||
@@ -290,6 +292,7 @@ public abstract class AbstractInvitationServiceImplTest extends BaseAlfrescoSpri
|
|||||||
*
|
*
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
|
@Test
|
||||||
public void testNominatedInvitationNewUser() throws Exception
|
public void testNominatedInvitationNewUser() throws Exception
|
||||||
{
|
{
|
||||||
Calendar calendar = Calendar.getInstance();
|
Calendar calendar = Calendar.getInstance();
|
||||||
@@ -467,6 +470,7 @@ public abstract class AbstractInvitationServiceImplTest extends BaseAlfrescoSpri
|
|||||||
*
|
*
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
|
@Test
|
||||||
public void testNominatedInvitationNewUserReject() throws Exception
|
public void testNominatedInvitationNewUserReject() throws Exception
|
||||||
{
|
{
|
||||||
Calendar calendar = Calendar.getInstance();
|
Calendar calendar = Calendar.getInstance();
|
||||||
@@ -543,6 +547,7 @@ public abstract class AbstractInvitationServiceImplTest extends BaseAlfrescoSpri
|
|||||||
*
|
*
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
|
@Test
|
||||||
public void testNominatedInvitationNewUserSameEmails() throws Exception
|
public void testNominatedInvitationNewUserSameEmails() throws Exception
|
||||||
{
|
{
|
||||||
String inviteeAFirstName = "John";
|
String inviteeAFirstName = "John";
|
||||||
@@ -624,6 +629,7 @@ public abstract class AbstractInvitationServiceImplTest extends BaseAlfrescoSpri
|
|||||||
siteService.removeMembership(resourceName, inviteeBUserName);
|
siteService.removeMembership(resourceName, inviteeBUserName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
public void testMNT11775() throws Exception
|
public void testMNT11775() throws Exception
|
||||||
{
|
{
|
||||||
String inviteeUserName = USER_TWO;
|
String inviteeUserName = USER_TWO;
|
||||||
@@ -693,6 +699,7 @@ public abstract class AbstractInvitationServiceImplTest extends BaseAlfrescoSpri
|
|||||||
*
|
*
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
|
@Test
|
||||||
public void test_MNT15614() throws Exception
|
public void test_MNT15614() throws Exception
|
||||||
{
|
{
|
||||||
String[] siteNames = {"it", "site", "GROUP"};
|
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
|
* Test nominated user - new user with whitespace in name. Related to
|
||||||
* ETHREEOH-3030.
|
* ETHREEOH-3030.
|
||||||
*/
|
*/
|
||||||
|
@Test
|
||||||
public void testNominatedInvitationNewUserWhitespace() throws Exception
|
public void testNominatedInvitationNewUserWhitespace() throws Exception
|
||||||
{
|
{
|
||||||
String inviteeFirstName = PERSON_FIRSTNAME_SPACES;
|
String inviteeFirstName = PERSON_FIRSTNAME_SPACES;
|
||||||
@@ -919,6 +927,7 @@ public abstract class AbstractInvitationServiceImplTest extends BaseAlfrescoSpri
|
|||||||
siteService.removeMembership(resourceName, inviteeUserName);
|
siteService.removeMembership(resourceName, inviteeUserName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
public void testNominatedInvitationExistingUser() throws Exception
|
public void testNominatedInvitationExistingUser() throws Exception
|
||||||
{
|
{
|
||||||
this.invitationServiceImpl.setNominatedInvitationWorkflowId(
|
this.invitationServiceImpl.setNominatedInvitationWorkflowId(
|
||||||
@@ -931,6 +940,7 @@ public abstract class AbstractInvitationServiceImplTest extends BaseAlfrescoSpri
|
|||||||
* moderated invitation Reject the invitation Create a moderated invitation
|
* moderated invitation Reject the invitation Create a moderated invitation
|
||||||
* Approve the invitation
|
* Approve the invitation
|
||||||
*/
|
*/
|
||||||
|
@Test
|
||||||
public void testModeratedInvitation()
|
public void testModeratedInvitation()
|
||||||
{
|
{
|
||||||
String inviteeUserName = USER_TWO;
|
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
|
* Create a moderated invitation for workspace client Get it Search for it Cancel it
|
||||||
*/
|
*/
|
||||||
|
@Test
|
||||||
public void testWorkspaceModeratedInvitation()
|
public void testWorkspaceModeratedInvitation()
|
||||||
{
|
{
|
||||||
String inviteeUserName = USER_TWO;
|
String inviteeUserName = USER_TWO;
|
||||||
@@ -1099,6 +1110,7 @@ public abstract class AbstractInvitationServiceImplTest extends BaseAlfrescoSpri
|
|||||||
/**
|
/**
|
||||||
* Test the approval of a moderated invitation
|
* Test the approval of a moderated invitation
|
||||||
*/
|
*/
|
||||||
|
@Test
|
||||||
public void testModeratedApprove()
|
public void testModeratedApprove()
|
||||||
{
|
{
|
||||||
String inviteeUserName = USER_TWO;
|
String inviteeUserName = USER_TWO;
|
||||||
@@ -1168,6 +1180,7 @@ public abstract class AbstractInvitationServiceImplTest extends BaseAlfrescoSpri
|
|||||||
/**
|
/**
|
||||||
* Tests of Moderated Reject
|
* Tests of Moderated Reject
|
||||||
*/
|
*/
|
||||||
|
@Test
|
||||||
public void testModeratedReject()
|
public void testModeratedReject()
|
||||||
{
|
{
|
||||||
String inviteeUserName = USER_TWO;
|
String inviteeUserName = USER_TWO;
|
||||||
@@ -1226,6 +1239,7 @@ public abstract class AbstractInvitationServiceImplTest extends BaseAlfrescoSpri
|
|||||||
/**
|
/**
|
||||||
* Test search invitation
|
* Test search invitation
|
||||||
*/
|
*/
|
||||||
|
@Test
|
||||||
public void testSearchInvitation()
|
public void testSearchInvitation()
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
@@ -1318,6 +1332,7 @@ public abstract class AbstractInvitationServiceImplTest extends BaseAlfrescoSpri
|
|||||||
/**
|
/**
|
||||||
* test that the search limiter works
|
* test that the search limiter works
|
||||||
*/
|
*/
|
||||||
|
@Test
|
||||||
public void testSearchInvitationWithLimit() throws Exception
|
public void testSearchInvitationWithLimit() throws Exception
|
||||||
{
|
{
|
||||||
Invitation.ResourceType resourceType = Invitation.ResourceType.WEB_SITE;
|
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
|
* 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{
|
public void testExternalUserManagerInvitingAnotherExternalUser() throws Exception{
|
||||||
String inviteeFirstName = PERSON_FIRSTNAME;
|
String inviteeFirstName = PERSON_FIRSTNAME;
|
||||||
String inviteeLastName = PERSON_LASTNAME;
|
String inviteeLastName = PERSON_LASTNAME;
|
||||||
@@ -1412,6 +1428,8 @@ public abstract class AbstractInvitationServiceImplTest extends BaseAlfrescoSpri
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Ignore
|
||||||
|
@Test
|
||||||
@Commit
|
@Commit
|
||||||
public void disabled_test100Invites() throws Exception
|
public void disabled_test100Invites() throws Exception
|
||||||
{
|
{
|
||||||
@@ -1445,6 +1463,7 @@ public abstract class AbstractInvitationServiceImplTest extends BaseAlfrescoSpri
|
|||||||
assertEquals(invite.getInviteId(), results.get(0).getInviteId());
|
assertEquals(invite.getInviteId(), results.get(0).getInviteId());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
public void testGetInvitation()
|
public void testGetInvitation()
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
Reference in New Issue
Block a user