1 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 21 public class PortletModeTestCase extends AbstractTestCase 22 { 23 24 public PortletModeTestCase(String s) 25 { 26 super(s); 27 } 28 29 protected void setUp() throws Exception 30 { 31 super.setUp(); 32 } 33 34 protected void tearDown() throws Exception 35 { 36 super.tearDown(); 37 } 38 39 public void testDuringRender() throws Throwable 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 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 |