FIXED : ALF-12036: External User Invitation issues

Uses the serverPath from sysAdminParams instead of being passed in by webscripts

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32893 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Gethin James
2011-12-20 15:41:39 +00:00
parent 6b52bff5b2
commit c685630b0b
6 changed files with 168 additions and 9 deletions

View File

@@ -229,6 +229,21 @@ public class InviteSenderTest extends TestCase
rejectLink);
}
public void testValidServerPath() throws Exception
{
String validPath = "test://test/path/";
String serverPath = InviteSender.ensureEndsWithSlash("test://test/path");
assertEquals(validPath,serverPath);
serverPath = InviteSender.ensureEndsWithSlash("test://test/path/");
assertEquals(validPath,serverPath);
}
protected static String ensureEndsWithSlash(String thePath)
{
return thePath.endsWith("/")?thePath:thePath+"/";
}
private Map<String, String> buildDefaultProperties()
{
Map<String, String> properties = new HashMap<String, String>();