KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > portal > test > portlet > dispatcher > spec > DispatcherTestCase


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

21 public class DispatcherTestCase extends AbstractTestCase
22 {
23
24    public DispatcherTestCase(String JavaDoc name)
25    {
26       super(name);
27    }
28
29    public void testContentType() throws Throwable JavaDoc
30    {
31       ClientSession session = createSession();
32       session.deploy("test-dispatcher");
33       Result result = start(session, "DispatchedRequestPortlet");
34       check(result, 1);
35       session.close();
36    }
37
38 }
39
Popular Tags