KickJava   Java API By Example, From Geeks To Geeks.

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


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 import org.exoplatform.services.wsrp.consumer.URLTemplateComposer;
9 import org.exoplatform.services.wsrp.consumer.impl.URLTemplateComposerImpl;
10
11 /*
12  * @author Mestrallet Benjamin
13  * benjmestrallet@users.sourceforge.net
14  * Date: 9 févr. 2004
15  * Time: 17:23:44
16  */

17
18 public class TestURLTemplateComposer extends BaseTest{
19
20   public void testBlockingGeneration(){
21 /* URLTemplateComposer composer = new URLTemplateComposerImpl();
22
23     String path = "/portal/faces/public/portal.jsp?portal:ctx=community&portal:component=wsrp/wsrpportlet/44rc74";
24     String returnedS = "http://localhost:8080/portal/faces/public/portal.jsp?portal:ctx=community&portal:co" +
25         "mponent=wsrp/wsrpportlet/44rc74&portal:type={wsrp-urlType}&portal:mode={wsrp-mode}&portal:windowSt" +
26         "ate={wsrp-windowState}&portal:isSecure={wsrp-secureURL}&wsrp-portletHandle={wsrp-portl" +
27         "etHandle}&portal:wsrp-portletInstanceKey={wsrp-portletInstanceKey}&wsrp-navigationalSt" +
28         "ate={wsrp-navigationalState}&wsrp-sessionID={wsrp-sessionID}&wsrp-userContextKey" +
29         "={wsrp-userContextKey}&wsrp-url={wsrp-url}&wsrp-requiresRewrite={wsrp-requiresRe" +
30         "write}&wsrp-interactionState={wsrp-interactionState}&wsrp-fragmentID={wsrp-fragm" +
31         "entID}";
32     assertEquals(returnedS, composer.createDefaultTemplate(path));*/

33   }
34
35 }
Popular Tags