protected Response run(Portlet portlet, RenderRequest request, RenderResponse response, PortletTestContext context) throws PortletException, IOException
{
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
{
assertTrue(TraceFilter.isActive("WildcardFilter", TraceFilter.ACTION));
assertFalse((TraceFilter.isActive("PartialWildcardFilter", TraceFilter.ACTION)));
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
{
assertTrue(TraceFilter.isActive("WildcardFilter", TraceFilter.EVENT));
assertFalse((TraceFilter.isActive("PartialWildcardFilter", TraceFilter.EVENT)));
}
});
seq.bindAction(1, UTP1.RENDER_JOIN_POINT, new PortletRenderTestAction()
{
protected Response run(Portlet portlet, RenderRequest request, RenderResponse response, PortletTestContext context) throws PortletException, IOException
{
assertTrue(TraceFilter.isActive("WildcardFilter", TraceFilter.RENDER));
assertFalse((TraceFilter.isActive("PartialWildcardFilter", TraceFilter.RENDER)));
return new InvokeGetResponse(response.createResourceURL().toString());
}
});
seq.bindAction(2, UTP1.RESOURCE_JOIN_POINT, new PortletResourceTestAction()
{
protected Response run(Portlet portlet, ResourceRequest request, ResourceResponse response, PortletTestContext context) throws PortletException, IOException
{
assertTrue(TraceFilter.isActive("WildcardFilter", TraceFilter.RESOURCE));
assertFalse((TraceFilter.isActive("PartialWildcardFilter", TraceFilter.RESOURCE)));
return new InvokeGetResponse(response.createRenderURL().toString());
}
});
seq.bindAction(3, UTP2.RENDER_JOIN_POINT, new PortletRenderTestAction()
{
protected Response run(Portlet portlet, RenderRequest request, RenderResponse response, PortletTestContext context) throws PortletException, IOException
{
return new InvokeGetResponse(response.createActionURL().toString());
}
});
seq.bindAction(4, UTP2.ACTION_JOIN_POINT, new PortletActionTestAction()
{
protected void run(Portlet portlet, ActionRequest request, ActionResponse response, PortletTestContext context) throws PortletException, IOException
{
assertTrue(TraceFilter.isActive("WildcardFilter", TraceFilter.ACTION));
assertTrue(TraceFilter.isActive("PartialWildcardFilter", TraceFilter.ACTION));