mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-08 14:51:49 +00:00
Merged WEBAPP-API (5.2.1) to 5.2.N (5.2.1)
135805 jkaabimofrad: fixed tests failures. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@135932 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -60,6 +60,7 @@ import org.alfresco.service.cmr.site.SiteService;
|
||||
import org.alfresco.service.cmr.site.SiteVisibility;
|
||||
import org.alfresco.util.BaseAlfrescoSpringTest;
|
||||
import org.alfresco.util.PropertyMap;
|
||||
import org.alfresco.util.email.ExtendedMailActionExecutor;
|
||||
import org.apache.commons.logging.Log;
|
||||
import org.apache.commons.logging.LogFactory;
|
||||
import org.springframework.util.ReflectionUtils;
|
||||
@@ -423,9 +424,17 @@ public abstract class AbstractInvitationServiceImplTest extends BaseAlfrescoSpri
|
||||
* Check that system generated invitations can work as well
|
||||
*/
|
||||
{
|
||||
Field faf = mailService.getClass().getDeclaredField("fromDefaultAddress");
|
||||
Field faf;
|
||||
if (mailService instanceof ExtendedMailActionExecutor)
|
||||
{
|
||||
faf = mailService.getClass().getSuperclass().getDeclaredField("fromDefaultAddress");
|
||||
}
|
||||
else
|
||||
{
|
||||
faf = mailService.getClass().getDeclaredField("fromDefaultAddress");
|
||||
}
|
||||
faf.setAccessible(true);
|
||||
String defaultFromAddress = (String)ReflectionUtils.getField(faf, mailService);
|
||||
String defaultFromAddress = (String) ReflectionUtils.getField(faf, mailService);
|
||||
|
||||
AuthenticationUtil.setFullyAuthenticatedUser(USER_NOEMAIL);
|
||||
|
||||
|
@@ -473,8 +473,8 @@ public class ResetPasswordServiceImplTest
|
||||
.setPassword("newPassword")
|
||||
.setWorkflowId(pair.getFirst())
|
||||
.setWorkflowKey(pair.getSecond());
|
||||
// Wait for 4 seconds, so the end timer expires!
|
||||
Thread.sleep(4000);
|
||||
// Wait for 5 seconds, so the end timer expires!
|
||||
Thread.sleep(5000);
|
||||
try
|
||||
{
|
||||
resetPasswordService.initiateResetPassword(passwordDetails);
|
||||
|
@@ -8,5 +8,5 @@ mail.from.default=alfresco@test-alfresco.org
|
||||
mail.testmessage.send=false
|
||||
|
||||
# validate email addresses
|
||||
mail.validate.addresses= false
|
||||
mail.validate.addresses= true
|
||||
dev.email.not.sent=true
|
Reference in New Issue
Block a user