KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > exoplatform > services > portletcontainer > imp > TestPortletModelParser


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

5 package org.exoplatform.services.portletcontainer.imp;
6
7 import java.io.InputStream JavaDoc;
8 import java.net.URL JavaDoc;
9 import org.exoplatform.services.portletcontainer.pci.model.*;
10 import org.exoplatform.test.BasicTestCase;
11
12 /**
13  * Thu, May 15, 2003 @
14  * @author: Tuan Nguyen
15  * @version: $Id: TestPortletModelParser.java,v 1.1 2004/07/13 02:28:53 tuan08 Exp $
16  * @since: 0.0
17  * @email: tuan08@yahoo.com
18  */

19 public class TestPortletModelParser extends BasicTestCase {
20
21   public TestPortletModelParser(String JavaDoc name) {
22     super(name);
23   }
24
25   public void setUp() throws Exception JavaDoc { }
26   
27   
28   public void testPortletModelParser() throws Exception JavaDoc {
29     URL JavaDoc url = new URL JavaDoc("file:./war_template/WEB-INF/portlet.xml");
30     InputStream JavaDoc is = url.openStream() ;
31     PortletApp pc = XMLParser.parse(is) ;
32   }
33   
34   protected String JavaDoc getDescription() {
35     return "Test Converter" ;
36   }
37 }
Popular Tags