Package org.gatein.pc.test.unit.actions

Examples of org.gatein.pc.test.unit.actions.PortletEventTestAction


            assertEquals("foo_value3", cookieMap.get("foo"));
            assertEquals("bar_value4", cookieMap.get("bar"));
            response.setEvent("Event", null);
         }
      });
      seq.bindAction(2, UTP5.EVENT_JOIN_POINT, new PortletEventTestAction()
      {
         protected void run(Portlet portlet, EventRequest request, EventResponse response, PortletTestContext context) throws PortletException, IOException
         {
            Map<String, String> cookieMap = createCookieMap(request);
            assertEquals("foo_value3", cookieMap.get("foo"));
View Full Code Here


            // Send an event to UTP1 which should create a new scope
            assertNull(request.getParameter(PortletRequest.ACTION_SCOPE_ID));
            response.setEvent("Event", null);
         }
      });
      seq.bindAction(2, UTP1.EVENT_JOIN_POINT, new PortletEventTestAction()
      {
         protected void run(Portlet portlet, EventRequest request, EventResponse response, PortletTestContext context) throws PortletException, IOException
         {
            scopedId2 = assertNotNull(request.getParameter(PortletRequest.ACTION_SCOPE_ID));
            assertNotEquals(scopedId1, scopedId2);
View Full Code Here

         protected void run(Portlet portlet, ActionRequest request, ActionResponse response, PortletTestContext context) throws PortletException, IOException
         {
            response.setEvent("Event", null);
         }
      });
      seq.bindAction(4, UTP1.EVENT_JOIN_POINT, new PortletEventTestAction()
      {
         protected void run(Portlet portlet, EventRequest request, EventResponse response, PortletTestContext context) throws PortletException, IOException
         {
            assertEquals(new String[]{"foo_value1","foo_value2"}, request.getParameterValues("foo"));
            response.removePublicRenderParameter("foo");
View Full Code Here

            //
            response.setEvent("Event", null);
         }
      });

      seq.bindAction(2, UTP6.EVENT_JOIN_POINT, new PortletEventTestAction()
      {
         protected void run(Portlet portlet, EventRequest request, EventResponse response, PortletTestContext context) throws PortletException, IOException
         {
            assertHeader(request, "action-value");
         }
View Full Code Here

TOP

Related Classes of org.gatein.pc.test.unit.actions.PortletEventTestAction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.