KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > test > portlet > portletconfig > PortletConfigTestCase


1 /*****************************************
2  * *
3  * JBoss Portal: The OpenSource Portal *
4  * *
5  * Forums JBoss Portlet *
6  * *
7  * Distributable under LGPL license. *
8  * See terms of license at gnu.org. *
9  * *
10  *****************************************/

11 package org.jboss.portal.test.portlet.portletconfig;
12
13 import org.jboss.portal.junit.ClientSession;
14 import org.jboss.portal.junit.Result;
15 import org.jboss.portal.junit.AbstractTestCase;
16
17 /**
18  * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>
19  * @version $Revision: 1.3 $
20  */

21 public class PortletConfigTestCase extends AbstractTestCase
22 {
23
24    public PortletConfigTestCase(String JavaDoc name)
25    {
26       super(name);
27    }
28
29    public void testResourceBundle() throws Throwable JavaDoc
30    {
31       ClientSession session = createSession();
32       session.deploy("test-portletconfig");
33       Result result = start(session, "ResourceBundlePortlet");
34       check(result, 1);
35       session.close();
36    }
37
38    public void testResourceBundleCascade() throws Throwable JavaDoc
39    {
40       ClientSession session = createSession();
41       session.deploy("test-portletconfig");
42       Result result = start(session, "ResourceBundleCascadePortlet");
43       check(result, 1);
44       session.close();
45    }
46
47 }
48
Popular Tags