portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tay...@apache.org
Subject svn commit: r393247 - in /portals/jetspeed-2/trunk/components/portal/src: java/org/apache/jetspeed/layout/impl/GetPortletsAction.java test/resources/assembly/test-layout-api.xml
Date Tue, 11 Apr 2006 15:32:32 GMT
Author: taylor
Date: Tue Apr 11 08:32:17 2006
New Revision: 393247

URL: http://svn.apache.org/viewcvs?rev=393247&view=rev
Log:
fix broken build, added constructor for unit testing

Modified:
    portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/layout/impl/GetPortletsAction.java
    portals/jetspeed-2/trunk/components/portal/src/test/resources/assembly/test-layout-api.xml

Modified: portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/layout/impl/GetPortletsAction.java
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/layout/impl/GetPortletsAction.java?rev=393247&r1=393246&r2=393247&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/layout/impl/GetPortletsAction.java
(original)
+++ portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/layout/impl/GetPortletsAction.java
Tue Apr 11 08:32:17 2006
@@ -60,6 +60,11 @@
     private PortletRegistry registry = null;
     private SearchEngine searchEngine = null;
     
+    public GetPortletsAction(String template, String errorTemplate)
+    {
+        this(template, errorTemplate, null, null, null, null, null);
+    }
+    
     public GetPortletsAction(String template, 
                              String errorTemplate,
                              PageManager pageManager,

Modified: portals/jetspeed-2/trunk/components/portal/src/test/resources/assembly/test-layout-api.xml
URL: http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/components/portal/src/test/resources/assembly/test-layout-api.xml?rev=393247&r1=393246&r2=393247&view=diff
==============================================================================
--- portals/jetspeed-2/trunk/components/portal/src/test/resources/assembly/test-layout-api.xml
(original)
+++ portals/jetspeed-2/trunk/components/portal/src/test/resources/assembly/test-layout-api.xml
Tue Apr 11 08:32:17 2006
@@ -121,6 +121,9 @@
     <constructor-arg index="1">
         <value>org/apache/jetspeed/layout/ajax-xml/error.vm</value>
     </constructor-arg>
+    <constructor-arg index='2'>
+        <ref bean="AjaxGetPortlets"/>        
+    </constructor-arg>     	        
     <!-- constructor-arg index='2'>
         <ref bean="org.apache.jetspeed.page.PageManager"/>        
     </constructor-arg>      
@@ -196,4 +199,14 @@
 		</constructor-arg>
 	</bean>
   
+<bean id="AjaxGetPortlets"
+    class="org.apache.jetspeed.layout.impl.GetPortletsAction">
+    <constructor-arg index="0">
+        <value>org/apache/jetspeed/layout/ajax-xml/getportlets.vm</value>
+    </constructor-arg>
+    <constructor-arg index="1">
+        <value>org/apache/jetspeed/layout/ajax-xml/error.vm</value>
+    </constructor-arg>
+</bean>
+    
 </beans>



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message