{
response.setRenderParameter("foo", "fooaction2");
response.setEvent("Foo", null);
}
});
seq.bindAction(2, UTP1.EVENT_JOIN_POINT, new PortletEventTestAction()
{
protected void run(Portlet portlet, EventRequest request, EventResponse response, PortletTestContext context) throws PortletException, IOException
{
if ("Foo".equals(request.getEvent().getName()))
{
assertRenderParameter(request, "foo", "fooaction2");
response.setRenderParameter("foo", "fooevent1");
}
else
{
fail();
}
}
});
seq.bindAction(2, UTP1.RENDER_JOIN_POINT, new PortletRenderTestAction()
{
protected Response run(Portlet portlet, RenderRequest request, RenderResponse response, PortletTestContext context)
{
assertRenderParameter(request, "foo", "fooevent1");
return new InvokeGetResponse(response.createActionURL().toString());
}
});
//
seq.bindAction(3, UTP1.ACTION_JOIN_POINT, new PortletActionTestAction()
{
protected void run(Portlet portlet, ActionRequest request, ActionResponse response, PortletTestContext context) throws PortletException, IOException
{
response.setRenderParameter("foo", "fooaction3");
response.setEvent("Foo", null);
}
});
seq.bindAction(3, UTP1.EVENT_JOIN_POINT, new PortletEventTestAction()
{
protected void run(Portlet portlet, EventRequest request, EventResponse response, PortletTestContext context) throws PortletException, IOException
{
String eventName = request.getEvent().getName();
if ("Foo".equals(eventName))