[gatein-commits] gatein SVN: r50 - in components/pc/trunk/federation: src/main/java/org/gatein/pc/federation/impl and 1 other directories.
do-not-reply at jboss.org
do-not-reply at jboss.org
Tue Aug 25 07:14:59 EDT 2009
Author: thomas.heute at jboss.com
Date: 2009-08-25 07:14:59 -0400 (Tue, 25 Aug 2009)
New Revision: 50
Modified:
components/pc/trunk/federation/pom.xml
components/pc/trunk/federation/src/main/java/org/gatein/pc/federation/impl/FederatedPortletInvokerService.java
components/pc/trunk/federation/src/test/java/org/gatein/pc/federation/FederatingPortletInvokerTestCase.java
Log:
Fixing federation testsuite
Modified: components/pc/trunk/federation/pom.xml
===================================================================
--- components/pc/trunk/federation/pom.xml 2009-08-25 08:35:25 UTC (rev 49)
+++ components/pc/trunk/federation/pom.xml 2009-08-25 11:14:59 UTC (rev 50)
@@ -47,6 +47,13 @@
</execution>
</executions>
<configuration>
+ <!--
+ <jpda>true</jpda>
+ <jpdaPort>9000</jpdaPort>
+ <jpdaSuspend>true</jpdaSuspend>
+ <failOnError>false</failOnError>
+ <assertions>true</assertions>
+ -->
<testsuites>
<testsuite>
<config>jboss-unit.xml</config>
@@ -62,4 +69,4 @@
</build>
-</project>
\ No newline at end of file
+</project>
Modified: components/pc/trunk/federation/src/main/java/org/gatein/pc/federation/impl/FederatedPortletInvokerService.java
===================================================================
--- components/pc/trunk/federation/src/main/java/org/gatein/pc/federation/impl/FederatedPortletInvokerService.java 2009-08-25 08:35:25 UTC (rev 49)
+++ components/pc/trunk/federation/src/main/java/org/gatein/pc/federation/impl/FederatedPortletInvokerService.java 2009-08-25 11:14:59 UTC (rev 50)
@@ -220,7 +220,7 @@
private PortletContext dereference(PortletContext compoundPortletContext)
{
- String portletId = compoundPortletContext.getId().substring(id.length() + 1);
+ String portletId = compoundPortletContext.getId().substring(id.length() + FederatingPortletInvokerService.SEPARATOR.length());
if (compoundPortletContext instanceof StatefulPortletContext)
{
StatefulPortletContext<?> compoundStatefulPortletContext = (StatefulPortletContext<?>)compoundPortletContext;
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 2009-08-25 08:35:25 UTC (rev 49)
+++ components/pc/trunk/federation/src/test/java/org/gatein/pc/federation/FederatingPortletInvokerTestCase.java 2009-08-25 11:14:59 UTC (rev 50)
@@ -73,6 +73,7 @@
fooInfo.getMeta().setDisplayName("FooPortlet");
// Wire
+ federatedInvoker.addPortlet("MyPortlet", fooInfo);
federatingInvoker.registerInvoker("foo", federatedInvoker);
// Basic setup
More information about the gatein-commits
mailing list