Author: chris.laprun(a)jboss.com
Date: 2010-01-18 07:48:28 -0500 (Mon, 18 Jan 2010)
New Revision: 1349
Modified:
components/pc/trunk/federation/src/test/java/org/gatein/pc/federation/FederatingPortletInvokerTestCase.java
Log:
- Fixed test case: needed to fake dereferencing of portlet id for proper resolution.
Modified:
components/pc/trunk/federation/src/test/java/org/gatein/pc/federation/FederatingPortletInvokerTestCase.java
===================================================================
---
components/pc/trunk/federation/src/test/java/org/gatein/pc/federation/FederatingPortletInvokerTestCase.java 2010-01-18
12:31:08 UTC (rev 1348)
+++
components/pc/trunk/federation/src/test/java/org/gatein/pc/federation/FederatingPortletInvokerTestCase.java 2010-01-18
12:48:28 UTC (rev 1349)
@@ -222,6 +222,21 @@
return "inexistent";
}
+ @Override
+ public Portlet getPortlet(PortletContext portletContext) throws
IllegalArgumentException, PortletInvokerException
+ {
+ // fake dereferencing of compound portlet id
+ String portletId = portletContext.getId();
+ if (portletId.startsWith(getId() + "."))
+ {
+ return
super.getPortlet(PortletContext.createPortletContext(portletId.substring(portletId.indexOf('.')
+ 1)));
+ }
+ else
+ {
+ throw new NoSuchPortletException(portletId);
+ }
+ }
+
public PortletInvoker getPortletInvoker()
{
return null;
Show replies by date