KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > test > portlet > portletmode > PortletModeTestCase


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.portletmode;
12
13 import org.jboss.portal.junit.Result;
14 import org.jboss.portal.junit.AbstractTestCase;
15 import org.jboss.portal.junit.ClientSession;
16
17 /**
18  * @author <a HREF="mailto:julien@jboss.org">Julien Viet</a>
19  * @version $Revision: 1.4 $
20  */

21 public class PortletModeTestCase extends AbstractTestCase
22 {
23
24    public PortletModeTestCase(String JavaDoc s)
25    {
26       super(s);
27    }
28
29    protected void setUp() throws Exception JavaDoc
30    {
31       super.setUp();
32    }
33
34    protected void tearDown() throws Exception JavaDoc
35    {
36       super.tearDown();
37    }
38
39    public void testDuringRender() throws Throwable JavaDoc
40    {
41       ClientSession session = createSession();
42       session.deploy("test-portlet-mode");
43       Result result = start(session, "TestDuringRenderPortlet");
44       check(result, 1);
45       session.close();
46    }
47
48    public void testDuringAction() throws Throwable JavaDoc
49    {
50       ClientSession session = createSession();
51       session.deploy("test-portlet-mode");
52       Result result = start(session, "TestDuringActionPortlet");
53       result = doGet(session, result, "TestDuringActionPortlet");
54       check(result, 1);
55       session.close();
56    }
57 }
58
Popular Tags