portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From woon...@apache.org
Subject svn commit: r767977 - in /portals/jetspeed-2/portal/trunk: components/jetspeed-page-manager/src/test/resources/ components/jetspeed-portal-site/src/test/resources/ components/jetspeed-profiler/src/test/resources/ src/site/xdoc/
Date Thu, 23 Apr 2009 16:59:56 GMT
Author: woonsan
Date: Thu Apr 23 16:59:55 2009
New Revision: 767977

URL: http://svn.apache.org/viewvc?rev=767977&view=rev
Log:
JS2-976: Fixing unit tests of jetspeed-portal-site and jetspeed-profiler components. Also,
adds a note about JVM option setting.

Added:
    portals/jetspeed-2/portal/trunk/components/jetspeed-page-manager/src/test/resources/castor.properties
  (with props)
    portals/jetspeed-2/portal/trunk/components/jetspeed-portal-site/src/test/resources/castor.properties
  (with props)
Modified:
    portals/jetspeed-2/portal/trunk/components/jetspeed-portal-site/src/test/resources/cache-test.xml
    portals/jetspeed-2/portal/trunk/components/jetspeed-profiler/src/test/resources/cache-test.xml
    portals/jetspeed-2/portal/trunk/src/site/xdoc/maven-2-build.xml

Added: portals/jetspeed-2/portal/trunk/components/jetspeed-page-manager/src/test/resources/castor.properties
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/trunk/components/jetspeed-page-manager/src/test/resources/castor.properties?rev=767977&view=auto
==============================================================================
--- portals/jetspeed-2/portal/trunk/components/jetspeed-page-manager/src/test/resources/castor.properties
(added)
+++ portals/jetspeed-2/portal/trunk/components/jetspeed-page-manager/src/test/resources/castor.properties
Thu Apr 23 16:59:55 2009
@@ -0,0 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+# 
+#     http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Defines the XML parser to be used by Castor. 
+# The parser must implement org.xml.sax.Parser.
+org.exolab.castor.parser=org.xml.sax.helpers.XMLReaderAdapter
+

Propchange: portals/jetspeed-2/portal/trunk/components/jetspeed-page-manager/src/test/resources/castor.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: portals/jetspeed-2/portal/trunk/components/jetspeed-page-manager/src/test/resources/castor.properties
------------------------------------------------------------------------------
    svn:keywords = Id

Propchange: portals/jetspeed-2/portal/trunk/components/jetspeed-page-manager/src/test/resources/castor.properties
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: portals/jetspeed-2/portal/trunk/components/jetspeed-portal-site/src/test/resources/cache-test.xml
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/trunk/components/jetspeed-portal-site/src/test/resources/cache-test.xml?rev=767977&r1=767976&r2=767977&view=diff
==============================================================================
--- portals/jetspeed-2/portal/trunk/components/jetspeed-portal-site/src/test/resources/cache-test.xml
(original)
+++ portals/jetspeed-2/portal/trunk/components/jetspeed-portal-site/src/test/resources/cache-test.xml
Thu Apr 23 16:59:55 2009
@@ -233,21 +233,6 @@
         </constructor-arg>
     </bean>
     
-    <bean id="ehPortletWindowCache" class="org.springframework.cache.ehcache.EhCacheFactoryBean">
-        <meta key="j2:cat" value="default or cache" />
-        <property name="cacheManager">
-            <ref local="cacheManager" />
-        </property>
-        <property name="cacheName" value="portletWindowCache" />
-    </bean>
-    
-    <bean id="portletWindowCache" class="org.apache.jetspeed.cache.impl.EhPortletWindowCache">
-        <meta key="j2:cat" value="default or cache" />
-        <constructor-arg index="0">
-            <ref bean="ehPortletWindowCache" />
-        </constructor-arg>
-    </bean>
-    
     <bean id="ehInternalPageFileCache" class="org.springframework.cache.ehcache.EhCacheFactoryBean">
         <meta key="j2:cat" value="default or cache" />
         <property name="cacheManager">

Added: portals/jetspeed-2/portal/trunk/components/jetspeed-portal-site/src/test/resources/castor.properties
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/trunk/components/jetspeed-portal-site/src/test/resources/castor.properties?rev=767977&view=auto
==============================================================================
--- portals/jetspeed-2/portal/trunk/components/jetspeed-portal-site/src/test/resources/castor.properties
(added)
+++ portals/jetspeed-2/portal/trunk/components/jetspeed-portal-site/src/test/resources/castor.properties
Thu Apr 23 16:59:55 2009
@@ -0,0 +1,19 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+# 
+#     http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+# Defines the XML parser to be used by Castor. 
+# The parser must implement org.xml.sax.Parser.
+org.exolab.castor.parser=org.xml.sax.helpers.XMLReaderAdapter
+

Propchange: portals/jetspeed-2/portal/trunk/components/jetspeed-portal-site/src/test/resources/castor.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: portals/jetspeed-2/portal/trunk/components/jetspeed-portal-site/src/test/resources/castor.properties
------------------------------------------------------------------------------
    svn:keywords = Id

Propchange: portals/jetspeed-2/portal/trunk/components/jetspeed-portal-site/src/test/resources/castor.properties
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: portals/jetspeed-2/portal/trunk/components/jetspeed-profiler/src/test/resources/cache-test.xml
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/trunk/components/jetspeed-profiler/src/test/resources/cache-test.xml?rev=767977&r1=767976&r2=767977&view=diff
==============================================================================
--- portals/jetspeed-2/portal/trunk/components/jetspeed-profiler/src/test/resources/cache-test.xml
(original)
+++ portals/jetspeed-2/portal/trunk/components/jetspeed-profiler/src/test/resources/cache-test.xml
Thu Apr 23 16:59:55 2009
@@ -233,21 +233,6 @@
         </constructor-arg>
     </bean>
     
-    <bean id="ehPortletWindowCache" class="org.springframework.cache.ehcache.EhCacheFactoryBean">
-        <meta key="j2:cat" value="default or cache" />
-        <property name="cacheManager">
-            <ref local="cacheManager" />
-        </property>
-        <property name="cacheName" value="portletWindowCache" />
-    </bean>
-    
-    <bean id="portletWindowCache" class="org.apache.jetspeed.cache.impl.EhPortletWindowCache">
-        <meta key="j2:cat" value="default or cache" />
-        <constructor-arg index="0">
-            <ref bean="ehPortletWindowCache" />
-        </constructor-arg>
-    </bean>
-    
     <bean id="ehInternalPageFileCache" class="org.springframework.cache.ehcache.EhCacheFactoryBean">
         <meta key="j2:cat" value="default or cache" />
         <property name="cacheManager">

Modified: portals/jetspeed-2/portal/trunk/src/site/xdoc/maven-2-build.xml
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/trunk/src/site/xdoc/maven-2-build.xml?rev=767977&r1=767976&r2=767977&view=diff
==============================================================================
--- portals/jetspeed-2/portal/trunk/src/site/xdoc/maven-2-build.xml (original)
+++ portals/jetspeed-2/portal/trunk/src/site/xdoc/maven-2-build.xml Thu Apr 23 16:59:55 2009
@@ -190,50 +190,6 @@
                 </p>
             </subsection>
         </section>
-        <section name='Maven Profiles'>
-            <p>The following profiles can be supplied when building </p>
-            <div>
-                <table>
-                    <tbody>
-                        <tr>
-                            <td>
-                                <p> <strong><tt>mvn -P all</tt></strong>
</p>
-                            </td>
-                            <td>
-                                <p> specified that all modules (the API, plugins, portal
resources, commons, components and applications) be built.</p>
-                            </td>
-                        </tr>
-                        <tr>
-                            <td>
-                                <p> <strong><tt>mvn -P init</tt></strong>
</p>
-                            </td>
-                            <td>
-                                <p> specified some modules to be initialized first
(the API, plugins and portal resources) </p>
-                            </td>
-                        </tr>
-                        <tr>
-                            <td>
-                                <p> <strong><tt>mvn -P test</tt></strong>
</p>
-                            </td>
-                            <td>
-                                <p> specified that all modules (the API, plugins, portal
resources, commons, components and applications) be built, with the property setting, <b>-Dmaven.test.skip=false</b></p>
-                            </td>
-                        </tr>
-                    </tbody>
-                </table>
-            </div>
-    		<subsection name='Additional Notes'>
-        		<ul>
-            		<li><b>mvn -P test</b> and <b>mvn -Dmaven.test.skip=false</b>
are equivalent.</li>
-            		<li><b>mvn -P test -Dtest=MyTest</b> will execute a single
test or matching tests if Ant wildcards are used. </li>		
-            		<li>Due to forking bugs in the Surefire Maven2 test runner plugin, test
output, (e.g. System.out.println()), is not echoed to the build shell. If you wish to see
console output for component tests, temporarily comment out the &lt;forkMode&gt;
-            		 elements in the components/pom.xml and the components pom.xml and run single
tests. Note: the forking is required to run multiple tests. 
-                    </li>
-                    <li><p> The <strong><tt>-o</tt></strong>
offline option can be specified with the commands documented here to force Maven2 to use only
the local repository. This can be invaluable in the event the main Maven2 repositories are
down and the build insists upon validating a missing or troublesome POM. </p>
-                   </li>
-        		</ul>
-    		</subsection>	
-		</section>
         <section name="More detailed building options">
             <subsection name="Overview">
                 <p>With the new jetspeed-mvn  plugin, building the Jetspeed-2 Portal
itself from source as well as building and deploying the default jetspeed-demo portal is now
extremely easy.</p>
@@ -253,7 +209,17 @@
                     <div class="source"><pre>$mvn jetspeed:mvn -Dtarget=test-install</pre>
                     </div>
                 </p>
-                <em>Note: Running the test-cases requires (and only for this) the proper
configuration of the org.apache.jetspeed.test.database.* properties in jetspeed-mvn-settings.xml</em>
+                <p>
+                    <em>Note: Running the test-cases requires (and only for this) the
proper configuration of the org.apache.jetspeed.test.database.* properties in jetspeed-mvn-settings.xml</em>
+                </p>
+                <p>
+                    <em>
+                        Note: Probably you need to configure some memory settings for maven
to run all the tests properly because some test cases require more memory than the default
size.
+                        You can configure memory settings for maven by setting the environment
variable 'MAVEN_OPTS'. For example,
+                        <div class="source"><pre>$export MAVEN_OPTS="-Xmx128m
-XX:MaxPermSize=128m"</pre>
+                        </div>
+                    </em>
+                </p>
             </subsection>
             <subsection name="Initializing the production database">
                 <p>The production database configuration provided by the Jetspeed-2
Portal project itself is primarly intended to be used by the developers using the jetspeed-demo
Portal.</p>
@@ -331,5 +297,49 @@
                 <p>Further detail of the different jetspeed:mvn targets and configurations
used for the dbpsml demo can be found in the jetspeed-mvn-plugin configuration within the
root pom.xml.</p>
             </subsection>
         </section>
+        <section name='Maven Profiles'>
+            <p>The following profiles can be supplied when building.</p>
+            <div>
+                <table>
+                    <tbody>
+                        <tr>
+                            <td>
+                                <p> <strong><tt>mvn -P all</tt></strong>
</p>
+                            </td>
+                            <td>
+                                <p> specified that all modules (the API, plugins, portal
resources, commons, components and applications) be built.</p>
+                            </td>
+                        </tr>
+                        <tr>
+                            <td>
+                                <p> <strong><tt>mvn -P init</tt></strong>
</p>
+                            </td>
+                            <td>
+                                <p> specified some modules to be initialized first
(the API, plugins and portal resources) </p>
+                            </td>
+                        </tr>
+                        <tr>
+                            <td>
+                                <p> <strong><tt>mvn -P test</tt></strong>
</p>
+                            </td>
+                            <td>
+                                <p> specified that all modules (the API, plugins, portal
resources, commons, components and applications) be built, with the property setting, <b>-DskipTests=false</b></p>
+                            </td>
+                        </tr>
+                    </tbody>
+                </table>
+            </div>
+            <subsection name='Additional Notes'>
+                <ul>
+                    <li><b>mvn -P test</b> and <b>mvn -DskipTests=false</b>
are equivalent.</li>
+                    <li><b>mvn -P test -Dtest=MyTest</b> will execute a
single test or matching tests if Ant wildcards are used. </li>      
+                    <li>Due to forking bugs in the Surefire Maven2 test runner plugin,
test output, (e.g. System.out.println()), is not echoed to the build shell. If you wish to
see console output for component tests, temporarily comment out the &lt;forkMode&gt;
+                     elements in the components/pom.xml and the components pom.xml and run
single tests. Note: the forking is required to run multiple tests. 
+                    </li>
+                    <li><p> The <strong><tt>-o</tt></strong>
offline option can be specified with the commands documented here to force Maven2 to use only
the local repository. This can be invaluable in the event the main Maven2 repositories are
down and the build insists upon validating a missing or troublesome POM. </p>
+                   </li>
+                </ul>
+            </subsection>   
+        </section>
 	</body>
 </document>



---------------------------------------------------------------------
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