KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > wsrp > testConsumer > TestURLRewriter


1 /*
2 * Copyright 2001-2004 The eXo platform SARL All rights reserved.
3 * Please look at license.txt in info directory for more license detail.
4 */

5
6 package org.exoplatform.services.wsrp.testConsumer;
7
8
9 import java.net.URLEncoder JavaDoc;
10 import java.net.URLDecoder JavaDoc;
11 import org.exoplatform.services.wsrp.WSRPConstants;
12 import org.exoplatform.services.wsrp.exceptions.WSRPException;
13
14 /*
15  * @author Mestrallet Benjamin
16  * benjmestrallet@users.sourceforge.net
17  * Date: 6 févr. 2004
18  * Time: 17:17:29
19  */

20
21 public class TestURLRewriter extends BaseTest {
22
23     String JavaDoc s = "wsrp_rewrite?wsrp-urlType=render&wsrp-mode=wsrp:help&" +
24         "wsrp-navigationalState=rO0ABXNyABFqYXZhLnV0aWwuSGFzaE1hcAUH2sHDFmDRAwACRgAKbG9hZEZhY3RvckkACXRocmVzaG9sZHhwP0AAAAAAAAh3CAAAAAsAAAAAeA**" +
25         "&wsrp-windowState=wsrp:normal&wsrp-secureURL=false/wsrp_rewrite";
26
27   public void testRewrite() throws WSRPException {
28     System.out.println("Rewritten : " + urlRewriter.rewriteURLs("baseURL", s));
29     //assertEquals(returned, urlRewriter.rewriteURLs(s));
30
}
31
32 }
Popular Tags