mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fixed InviteSender tests broken by r32893.
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@32931 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -231,12 +231,17 @@ public class InviteSenderTest extends TestCase
|
||||
|
||||
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);
|
||||
String validPath = "test://test/path/accept?hello";
|
||||
String link = sender.makeLink("test://test/path", "accept", "hello");
|
||||
assertEquals(validPath, link);
|
||||
link = sender.makeLink("test://test/path/", "accept", "hello");
|
||||
assertEquals(validPath, link);
|
||||
link = sender.makeLink("test://test/path", "/accept", "hello");
|
||||
assertEquals(validPath, link);
|
||||
link = sender.makeLink("test://test/path/", "/accept", "hello");
|
||||
assertEquals(validPath, link);
|
||||
link = sender.makeLink("test://test/path", "/accept", "?hello");
|
||||
assertEquals(validPath, link);
|
||||
}
|
||||
|
||||
protected static String ensureEndsWithSlash(String thePath)
|
||||
|
Reference in New Issue
Block a user