//
seq.bindAction(1, UTP1.ACTION_JOIN_POINT, new PortletActionTestAction()
{
protected void run(Portlet portlet, ActionRequest request, ActionResponse response, PortletTestContext context) throws PortletException, IOException
{
commonPayload = new CommonEventPayload();
commonPayload.setString("commonpingvalue");
response.setEvent("CommonPing", commonPayload);
}
});
seq.bindAction(1, UTP1.EVENT_JOIN_POINT, new PortletEventTestAction()
{
protected void run(Portlet portlet, EventRequest request, EventResponse response, PortletTestContext context) throws PortletException, IOException
{
assertEquals("commonpingvalue", commonPayload.getString());
Event event = request.getEvent();
assertEquals("CommonPong", event.getName());
CommonEventPayload payload = (CommonEventPayload)event.getValue();
assertEquals("commonpongvalue", payload.getString());
commonEventPonged = true;
}
});
seq.bindAction(1, UTP1.RENDER_JOIN_POINT, new PortletRenderTestAction()
{