return new InvokeGetResponse(response.createActionURL().toString());
}
});
//
seq.bindAction(1, UTP1.ACTION_JOIN_POINT, new PortletActionTestAction()
{
protected void run(Portlet portlet, ActionRequest request, ActionResponse response, PortletTestContext context) throws PortletException, IOException
{
check(portlet, request, response, "GET");
//
response.setEvent("Event", null);
}
});
seq.bindAction(1, UTP1.EVENT_JOIN_POINT, new PortletEventTestAction()
{
protected void run(Portlet portlet, EventRequest request, EventResponse response, PortletTestContext context) throws PortletException, IOException
{
check(portlet, request, response, "GET");
}
});
seq.bindAction(1, UTP1.RENDER_JOIN_POINT, new PortletRenderTestAction()
{
protected Response run(Portlet portlet, RenderRequest request, RenderResponse response, PortletTestContext context) throws IOException, PortletException
{
check(portlet, request, response, "GET");
//
return new InvokeGetResponse(response.createResourceURL().toString());
}
});
seq.bindAction(1, UTS1.SERVICE_JOIN_POINT, service);
seq.bindAction(2, UTP1.RESOURCE_JOIN_POINT, new PortletResourceTestAction()
{
protected Response run(Portlet portlet, ResourceRequest request, ResourceResponse response, PortletTestContext context) throws PortletException, IOException
{
check(portlet, request, response, "GET");
//
InvokePostResponse post = new InvokePostResponse(response.createActionURL().toString());
post.setContentType(InvokePostResponse.APPLICATION_X_WWW_FORM_URLENCODED);
post.setBody(new Body.Form());
return post;
}
});
seq.bindAction(2, UTS1.SERVICE_JOIN_POINT, service);
//
seq.bindAction(3, UTP1.ACTION_JOIN_POINT, new PortletActionTestAction()
{
protected void run(Portlet portlet, ActionRequest request, ActionResponse response, PortletTestContext context) throws PortletException, IOException
{
check(portlet, request, response, "POST");