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:
Brian Remmington
2011-12-21 19:20:09 +00:00
parent 047d9b2fff
commit 6bf23e2176
2 changed files with 19 additions and 12 deletions

View File

@@ -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)